ecell4_base icon indicating copy to clipboard operation
ecell4_base copied to clipboard

Attributes of ReactionRules are not inherited in `expand`

Open kaizu opened this issue 5 years ago • 0 comments

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 avatar Sep 25 '20 07:09 kaizu