Kappa-Dev / KappaTools

Tool suite for kappa models. Documentation and binaries can be found in the release section. Try it online at
http://kappalanguage.org/
GNU Lesser General Public License v3.0
112 stars 41 forks source link

Apply time-sensitive perturbations before the event modifies the mixture #400

Closed hmedina closed 7 years ago

hmedina commented 7 years ago

Requesting a snapshot at [T] > 10, KaSim will produce a snapshot at the first moment time goes above the value 10, which is during the time update of the Gillespie algorithm, but the snapshot yields the mixture after the event has modified it. Thus the snapshot does not hold the state of the mixture at [T] > 10, but rather [T] > 10 + 1 event.

pirbo commented 7 years ago

Fixed in 9bb6f27f7575fd76850e9a6ed7d77fb124fb792d

I'm worried it changes some data.csv too but late Friday evening commits won't be fun elsewhere!