From 6517fc88103bc3cfaad4d5a1fdbd9131015360d4 Mon Sep 17 00:00:00 2001 From: Ryan Spangler Date: Mon, 29 Jan 2024 04:49:18 -0800 Subject: [PATCH] working with inputs that are paths instead of trees of paths --- process_bigraph/composite.py | 2 ++ process_bigraph/experiments/minimal_gillespie.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/process_bigraph/composite.py b/process_bigraph/composite.py index 48b67d9..d24bbfc 100644 --- a/process_bigraph/composite.py +++ b/process_bigraph/composite.py @@ -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): diff --git a/process_bigraph/experiments/minimal_gillespie.py b/process_bigraph/experiments/minimal_gillespie.py index 9339a0f..7805ebb 100644 --- a/process_bigraph/experiments/minimal_gillespie.py +++ b/process_bigraph/experiments/minimal_gillespie.py @@ -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: