Permanent entities implementation. Allows for preserving concentration levels when the inhibitors are not provided.
This commit is contained in:
@@ -415,11 +415,11 @@ def blood_glucose_regulation(print_system=True):
|
||||
# potrzebne sa reakcje, ktore utrzymaja okresolna molekule na tym samym poziomie
|
||||
# -> przed podtrzymaniem trzeba sie upewnic, ze jednak jakas reakcja nie chce zmienic tego poziomu
|
||||
|
||||
r.add_permanency("sugar",[])
|
||||
|
||||
# moje:
|
||||
r.add_reaction([("sugar",1)],[],[("sugar",1)])
|
||||
|
||||
|
||||
|
||||
c = ContextAutomatonWithConcentrations(r)
|
||||
c.add_init_state("0")
|
||||
c.add_state("1")
|
||||
|
||||
Reference in New Issue
Block a user