Release notes for sbmlsim 0.38.1
A patch release of the libraries of the day, hours after 0.38.0: the floors of sbmlode and sbmlutils are the releases which read and write the wide math of a model, so the COMBINE archive of a model package whose assignment rule sums a thousand parameters is written instead of failing. Nothing of sbmlsim itself changes - pyproject.toml and the lock carry the two floors, and the citation of 0.38.0 is everything else which moved since that tag.
Dependencies
-
sbmlode>=0.3.3(#633), the floor of this release and the one which reaches a user of sbmlsim. libsbml reads the flat n-ary sum of a MathML document as a chain of binary nodes, so an assignment rule which sums 1,200 parameters is math 1,200 levels deep, and the printers of sbmlode walked it recursively: the documents of such a model failed with aRecursionError, which the user was shown as "maximum recursion depth exceeded", and dropping the zero terms of such a sum copied the square of its length in nodes, so a sum of 5,000 terms took 23 seconds and 14 GB and one of 20,000 terms was killed by the kernel before it answered.sbmlsim.release.archivewrites the ODEs of a model as markdown throughsbmlode.OdeSystem(OdeSystem.from_sbml(flat).write(md_path)), whichwrite_archiveruns for the flat model of every release of a model package, so a model with wide math could not be released at all. The walks of the printers and ofastutilcarry a stack of their own in 0.3.3, a chain of 20,000 terms renders in every format in under a second, the analysis of a sum of 20,000 terms with arateOfamong them takes 1.2 seconds and 23 MB, and math which nests genuinely deeper than the printers read is refused with anUnsupportedMathErrorwhich names the depth of the math and the element it belongs to instead of raising aRecursionError. -
sbmlutils>=0.17.3(#633), the matching refresh of that package, whosesbmlutils.converters.odere-exports sbmlode module for module and therefore carries the same fix, and which moves ontopymetadata>=0.9.0, the floor sbmlsim already locked in 0.38.0 for the COMBINE archives of the Rustpymetadata-core, and pins its own type checker at ty 0.0.109. Nothing of the API which sbmlsim reads changes:sbmlutils.comp.flatten_sbmlandsbmlutils.io.sbml_to_antimony, whichsbmlsim.release.archivecalls next toOdeSystem, are the ones they were.