Demo 03: Perturbation & Recovery¶
Two experiments: spike recovery and reaction-removal drift.
In [1]:
Copied!
import sys
from pathlib import Path
# Ensure alienbio is importable
_root = Path(".").resolve().parent.parent / "src"
if str(_root) not in sys.path:
sys.path.insert(0, str(_root))
_demos = Path(".").resolve().parent
if str(_demos) not in sys.path:
sys.path.insert(0, str(_demos))
%matplotlib inline
import sys
from pathlib import Path
# Ensure alienbio is importable
_root = Path(".").resolve().parent.parent / "src"
if str(_root) not in sys.path:
sys.path.insert(0, str(_root))
_demos = Path(".").resolve().parent
if str(_demos) not in sys.path:
sys.path.insert(0, str(_demos))
%matplotlib inline
Spike Recovery¶
Inject +20 into zynol after 200 equilibration steps.
In [2]:
Copied!
from _core import demo_03_spike_recovery, demo_03_drift
fig_spike = demo_03_spike_recovery()
fig_spike
from _core import demo_03_spike_recovery, demo_03_drift
fig_spike = demo_03_spike_recovery()
fig_spike
Out[2]:
Reaction Removal Drift¶
Remove the B→C reaction and observe the system drifting.
In [3]:
Copied!
fig_drift = demo_03_drift()
fig_drift
fig_drift = demo_03_drift()
fig_drift
Out[3]: