Skip to content

0.67.1

Choose a tag to compare

@github-actions github-actions released this 03 Dec 07:39
· 10 commits to develop since this release
faa45d2

Release notes for sbmlsim 0.67.1

sbmlsim

A patch of 0.67.0: the model key of a population panel no longer changes with the dates of the model history, the seed of an uncertainty band is bounded, a large model loads faster, and the web app vendors sbmlsim-web 0.12.4. The contracts are unchanged.

Fixes

  • The model key of a population panel without the dates of its model history (#840, #841). The key <variant>-<12 hex> hashed the population SBML including the dcterms:created and dcterms:modified dates of its model history, so every run of the factory changed the key, the directory models/<key>/ and the app, and changed_outputs reported a change. The key now hashes the SBML without those elements, whatever the layout of the file (one line or pretty-printed), through one helper shared with same_sbml (hashing.without_history_dates). The compiled SBML is unchanged.
  • The seed of an uncertainty band at most 2^64 - 1 (#838). A larger seed passed the startup and failed every request with a 500, since the design of sbmlsim-core takes an unsigned 64 bit integer. It is refused at the declaration with MAX_SEED, as the seed of a population is.
  • The document kept for the reads of a model is kept per thread. The load of a model keeps the libsbml document it read last (symbols.read_document) for the reads which follow; with the faster load of 0.67.1 a model loaded from several threads at once, as the service does, crashed the process now and then (about one run in six of a stress test, a worker of the test suite crashed in CI). libsbml documents are not safe to share between threads, so every thread keeps its own.

Performance

  • The load of a large model reads its SBML once and looks its ids up once (#842). The models with the slowest load on the engine core (files of 1.5 to 2.9 MB of level 2, 1.4 to 2.2 s) spent most of it in the python layer and libsbml. to_level3 converts the document it read for the level, the elements of the model are read once instead of one walk per id, and the derived unit of a kinetic law is formatted once. The elements of every id are the ones Model.getElementBySId returns, and the loaded SBML is the same.

The web app

  • sbmlsim-web 0.12.4 is vendored (#839 0.12.1, then 0.12.4): the label of an optional knob is not truncated when there is room, every knob value is read out in one font, every scan value is labelled on the axis of a box plot, DOI URLs and license names never break inside, and the empty model hash of a live figure which has only data is left out of the provenance line.

Changed results

None: the simulations, the panels and the figures are the same. The web app of a model embeds the new sbmlsim-web, so run the factory again to update it.