Skip to content
Snippets Groups Projects

Replace << connect operator with <<= and overload shift

Merged Oscar Gustafsson requested to merge ilshift into master
15 files
+ 178
173
Compare changes
  • Side-by-side
  • Inline
Files
15
+ 5
1
@@ -203,6 +203,10 @@ class Resource(HardwareBlock):
@@ -203,6 +203,10 @@ class Resource(HardwareBlock):
def _info(self):
def _info(self):
return ""
return ""
 
@property
 
def _color(self):
 
raise NotImplementedError
 
@property
@property
def schedule_time(self) -> int:
def schedule_time(self) -> int:
# doc-string inherited
# doc-string inherited
@@ -304,7 +308,7 @@ class Resource(HardwareBlock):
@@ -304,7 +308,7 @@ class Resource(HardwareBlock):
"""
"""
if isinstance(proc, OperatorProcess):
if isinstance(proc, OperatorProcess):
# operation_type marks OperatorProcess associated operation.
# operation_type marks OperatorProcess associated operation.
if not isinstance(proc._operation, self.operation_type):
if not isinstance(proc.operation, self.operation_type):
raise TypeError(f"{proc} not of type {self.operation_type}")
raise TypeError(f"{proc} not of type {self.operation_type}")
else:
else:
# operation_type is MemoryVariable or PlainMemoryVariable
# operation_type is MemoryVariable or PlainMemoryVariable
Loading