Skip to content
Snippets Groups Projects
Commit 10976d00 authored by angloth's avatar angloth
Browse files

Solve pull request comments and change so evaluate function in SFG uses the...

Solve pull request comments and change so evaluate function in SFG uses the same interface as the abstract evaluate function
parent d46c3ba6
No related branches found
No related tags found
1 merge request!11Resolve "Add AbstractPort" and "Change Port ID to Port Index"
Pipeline #10734 passed
......@@ -14,6 +14,7 @@ from b_asic.simulation import SimulationState, OperationState
from b_asic.utilities import breadth_first_search
from b_asic.signal import Signal
class AbstractOperation(Operation, AbstractGraphComponent):
"""Generic abstract operation class which most implementations will derive from.
TODO: More info.
......
......@@ -46,7 +46,7 @@ class SFG(AbstractOperation):
# TODO: Traverse the graph between the inputs/outputs and add to self._operations.
# TODO: Connect ports with signals with appropriate IDs.
def evaluate(self, inputs: list) -> list:
def evaluate(self, *inputs) -> list:
return [] # TODO: Implement
def _add_graph_component(self, graph_component: GraphComponent) -> GraphID:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment