ecell / ecell4_base

An integrated software environment for multi-algorithm, multi-timescale, multi-spatial-representation simulation of various cellular phenomena
https://ecell4.e-cell.org/
GNU General Public License v3.0
62 stars 23 forks source link

Attributes of ReactionRules are not inherited in `expand` #489

Open kaizu opened 3 years ago

kaizu commented 3 years ago
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 []