KappaTools icon indicating copy to clipboard operation
KappaTools copied to clipboard

KaJaSim feature idea: allow new observables at runtime

Open hmedina opened this issue 8 years ago • 3 comments

The Javascript simulator allows one to pause the simulation at arbitrary times through the interactive mode. It would be useful if one could demand snapshots, and add perturbations or observables at such times. Some models are expensive to initialize, and once unexpected behavior begins happening, the capacity to inject or observe something would be useful (instead of aborting and having to restart the simulation with a modified script). Forgetting to include the snapshot command, and figure out the right time to trigger it, is quite frustrating.

hmedina avatar Apr 06 '16 03:04 hmedina

The subtlety here is what to do with plot line that have no value for this new observable (because they are older than this observable declaration). It is important for plotting tools to maintain the "rectangle" aspect of the plotting file so I guess we need to "regenerate" the older line with an extra empty value in a way or an other. I don't know how to do that in command line mode where the lines are streamed as soon as available ...

pirbo avatar Nov 04 '16 02:11 pirbo

We are nearly there in JSON as we deal with null values but we are locked to the same question as for #89: what is the csv for "undefined"?

pirbo avatar Nov 25 '16 21:11 pirbo

How about an empty entry? Having actual commas as separators means two consecutive commas hold an empty / none value.

On Nov 25, 2016 16:50, "Pierre Boutillier" [email protected] wrote:

We are nearly there in JSON as we deal with null values but we are locked to the same question as for #89 https://github.com/Kappa-Dev/KaSim/issues/89: what is the csv for "undefined"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kappa-Dev/KaSim/issues/205#issuecomment-263025833, or mute the thread https://github.com/notifications/unsubscribe-auth/ABg9SXKOxqhG9fxU-0f_Rh8xwzL_QABWks5rB1gLgaJpZM4IAtwD .

hmedina avatar Nov 26 '16 02:11 hmedina