Skip to content

Commit

Permalink
trying to fix initial_edge_state to reflect the change from ports to …
Browse files Browse the repository at this point in the history
…inputs/outputs
  • Loading branch information
eagmon committed Jan 11, 2024
1 parent 8044ca2 commit 8f8a2b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions process_bigraph/type_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,16 @@ def infer_edge(self, schema, wires):

def initialize_edge_state(self, schema, path, edge):
initial_state = edge['instance'].initial_state()
ports = get_path(schema, path + ('_ports',))
input_ports = get_path(schema, path + ('_inputs',))
output_ports = get_path(schema, path + ('_outputs',))
ports = {'inputs': input_ports, 'outputs': output_ports}

return self.project_edge(
projected_state = self.project_edge(
ports,
edge,
path[:-1],
initial_state)
return projected_state

def dehydrate(self, schema):
return {}
Expand Down

0 comments on commit 8f8a2b2

Please sign in to comment.