Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python interface should be able to continue existing simulations #514

Closed
lkeegan opened this issue Apr 28, 2021 · 0 comments · Fixed by #515
Closed

python interface should be able to continue existing simulations #514

lkeegan opened this issue Apr 28, 2021 · 0 comments · Fixed by #515
Labels
enhancement New feature or request python Python library

Comments

@lkeegan
Copy link
Member

lkeegan commented Apr 28, 2021

  • both the GUI and CLI can import an existing simulation from an sme file and continue the simulation
  • currently this is not possible in sme: any existing simulation results are first cleared before simulating
  • also the results are returned by simulate(), and constructed at each timestep using the simulator concentrations, so existing simulation results are also currently missing from the python interface
@lkeegan lkeegan added enhancement New feature or request python Python library labels Apr 28, 2021
lkeegan added a commit that referenced this issue Apr 29, 2021
- add `continue_existing_simulation` arg to `Model.simulate()`
  - default value `False` to avoid changing existing default behaviour of `simulate()`
- `simulate()` now returns all simulation results (not just the ones it generated)
  - `species_dcdt` is now only provided for pixel simulations and for the last timepoint
  - this is not part of `SimulationData`, but is currently used for steady-state python fitting
- add `Model.export_sme_file()` and `sme.import_file()` to allow import/export of sme files
- add `simulate()` overload that takes strings instead of floats for lengths/intervals
  - allows comma-delimited lists of lengths&intervals as in GUI & CLI
- resolves #514
lkeegan added a commit that referenced this issue Apr 29, 2021
- add `continue_existing_simulation` arg to `Model.simulate()`
  - default value `False` to avoid changing existing default behaviour of `simulate()`
- `simulate()` now returns all simulation results (not just the ones it generated)
  - `species_dcdt` is now only provided for pixel simulations and for the last timepoint
  - this is not part of `SimulationData`, but is currently used for steady-state python fitting
- add `Model.export_sme_file()` and `sme.import_file()` to allow import/export of sme files
- add `simulate()` overload that takes strings instead of floats for lengths/intervals
  - allows comma-delimited lists of lengths&intervals as in GUI & CLI
- resolves #514
lkeegan added a commit that referenced this issue Apr 29, 2021
- add `continue_existing_simulation` arg to `Model.simulate()`
  - default value `False` to avoid changing existing default behaviour of `simulate()`
- `simulate()` now returns all simulation results (not just the ones it generated)
  - `species_dcdt` is now only provided for pixel simulations and for the last timepoint
  - this is not part of `SimulationData`, but is currently used for steady-state python fitting
- add `Model.export_sme_file()` and `sme.import_file()` to allow import/export of sme files
- add `simulate()` overload that takes strings instead of floats for lengths/intervals
  - allows comma-delimited lists of lengths&intervals as in GUI & CLI
- resolves #514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Python library
Projects
None yet
1 participant