Skip to content

Commit

Permalink
working with inputs that are paths instead of trees of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
prismofeverything committed Jan 29, 2024
1 parent 31b490c commit 6517fc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions process_bigraph/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ def find_leaves(d, path=None):

if isinstance(d, list):
leaves = d
elif isinstance(d, tuple):
leaves.append(d)
else:
for key, value in d.items():
if isinstance(value, dict):
Expand Down
4 changes: 2 additions & 2 deletions process_bigraph/experiments/minimal_gillespie.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def test_gillespie_composite():
'mRNA': ['mRNA'],
'interval': ['event', 'interval']}}}}

# 'emit': 'tree[any]'},
# 'inputs': []}}}
# 'emit': 'any'},
# 'inputs': ()}}}


# TODO: provide a way to emit everything:
Expand Down

0 comments on commit 6517fc8

Please sign in to comment.