Skip to content
Snippets Groups Projects
Commit c117d89a authored by Ivar Härnqvist's avatar Ivar Härnqvist
Browse files

fix merge

parent 8a855b8b
Branches
No related tags found
2 merge requests!67WIP: B-ASIC version 1.0.0 hotfix,!65B-ASIC version 1.0.0
...@@ -353,7 +353,6 @@ class SFG(AbstractOperation): ...@@ -353,7 +353,6 @@ class SFG(AbstractOperation):
""" """
return self._components_by_name.get(name, []) return self._components_by_name.get(name, [])
<<<<<<< HEAD
def find_result_keys_by_name(self, name: Name, output_index: int = 0) -> Sequence[ResultKey]: def find_result_keys_by_name(self, name: Name, output_index: int = 0) -> Sequence[ResultKey]:
"""Find all graph components with the specified name and """Find all graph components with the specified name and
return a sequence of the keys to use when fetching their results return a sequence of the keys to use when fetching their results
...@@ -368,7 +367,7 @@ class SFG(AbstractOperation): ...@@ -368,7 +367,7 @@ class SFG(AbstractOperation):
if isinstance(comp, Operation): if isinstance(comp, Operation):
keys.append(comp.key(output_index, comp.graph_id)) keys.append(comp.key(output_index, comp.graph_id))
return keys return keys
=======
def replace_component(self, component: Operation, _id: GraphID): def replace_component(self, component: Operation, _id: GraphID):
"""Find and replace all components matching either on GraphID, Type or both. """Find and replace all components matching either on GraphID, Type or both.
Then return a new deepcopy of the sfg with the replaced component. Then return a new deepcopy of the sfg with the replaced component.
...@@ -647,7 +646,6 @@ class SFG(AbstractOperation): ...@@ -647,7 +646,6 @@ class SFG(AbstractOperation):
"""TODO: docstring""" """TODO: docstring"""
for op in self.get_components_with_type_name(type_name): for op in self.get_components_with_type_name(type_name):
op.set_latency_offsets(latency_offsets) op.set_latency_offsets(latency_offsets)
>>>>>>> d2ae5743259f581c116bb3772d17c3b2023ed9e0
def _add_component_unconnected_copy(self, original_component: GraphComponent) -> GraphComponent: def _add_component_unconnected_copy(self, original_component: GraphComponent) -> GraphComponent:
assert original_component not in self._original_components_to_new, "Tried to add duplicate SFG component" assert original_component not in self._original_components_to_new, "Tried to add duplicate SFG component"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment