Open-Systems-Pharmacology / MoBi

MoBi® is a software tool for multiscale physiological modeling and simulation
Other
31 stars 10 forks source link

Bug: "Rollback" in history restores value of parameter to its BB-value, not the one during the rollback state #250

Open PavelBal opened 6 years ago

PavelBal commented 6 years ago

1) Open PK-Sim example "Caffeine" 2) Export any simulation to MoBi 3) Simulate in MoBi 4) Change "Relative expression in vascular endothelium (normalized)" of the protein "CYP1A2" from 0 to 1 and simulate 5) Chage the same parameter to 0.5 and simulate 6) Rollback to the state before changing the value from 1 to 0.5, i.e., two states back. 7) The value of the parameter is 0 and not 1.

msevestre commented 6 years ago

Sounds correct to me? O to 1 to 0.5 Rollback two states.

Value should be O?

PavelBal commented 6 years ago

Sorry, it is confusing:

State (i) = "Simulation run successful" State (i-1) = "Value set from 1 to 0.5" State (i-2) = "Simulation run successful" State (i-3) = "Value set from 0 to 1"

So you have to rollback to (i-2), where the value should be 1.

msevestre commented 6 years ago

ok gotcha. Thanks