Skip to content

Commit

Permalink
Add consumed and produced key if a template is reversible for sbml am…
Browse files Browse the repository at this point in the history
…r export
  • Loading branch information
nanglo123 committed Sep 20, 2024
1 parent 8e39c17 commit 4b48614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mira/modeling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def make_model(self):
self.template_model.initials)
for participant in template.left
)
consumed_key = tuple(c.key for c in consumed)
else:
consumed, consumed_key = tuple(), None

Expand Down Expand Up @@ -333,6 +334,7 @@ def make_model(self):
self.template_model.initials)
for participant in template.right
)
produced_key = tuple(p.key for p in produced)
elif not is_replication(template):
produced, produced_key = tuple(), None

Expand Down

0 comments on commit 4b48614

Please sign in to comment.