Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes of ReactionRules are not inherited in expand #489

Open
kaizu opened this issue Sep 25, 2020 · 0 comments
Open

Attributes of ReactionRules are not inherited in expand #489

kaizu opened this issue Sep 25, 2020 · 0 comments
Assignees
Labels

Comments

@kaizu
Copy link
Member

kaizu commented Sep 25, 2020

from ecell4.prelude import *

with reaction_rules():
    A > B | 0.0 | {"name": "rr1"}
    
m = get_model(is_netfree=True)

for rr in m.reaction_rules():
    print(rr.as_string(), rr.list_attributes())
# A>B|0 [('name', 'rr1')]

for rr in m.expand([Species("A")]).reaction_rules():
    print(rr.as_string(), rr.list_attributes())
# A>B|0 []
@kaizu kaizu self-assigned this Sep 25, 2020
@kaizu kaizu added the bug label Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant