Permanent entities implementation. Allows for preserving concentration levels when the inhibitors are not provided.

This commit is contained in:
Artur Meski
2016-03-02 18:08:07 +01:00
parent 3f3690c861
commit 6ab5304628

View File

@@ -415,11 +415,11 @@ def blood_glucose_regulation(print_system=True):
# potrzebne sa reakcje, ktore utrzymaja okresolna molekule na tym samym poziomie # 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 # -> przed podtrzymaniem trzeba sie upewnic, ze jednak jakas reakcja nie chce zmienic tego poziomu
r.add_permanency("sugar",[])
# moje: # moje:
r.add_reaction([("sugar",1)],[],[("sugar",1)]) r.add_reaction([("sugar",1)],[],[("sugar",1)])
c = ContextAutomatonWithConcentrations(r) c = ContextAutomatonWithConcentrations(r)
c.add_init_state("0") c.add_init_state("0")
c.add_state("1") c.add_state("1")