Release notes for sbmlutils 0.20.0
sbmlutils requires python-libsbml 5.22.0, which fixes defects sbmlutils worked around, and drops the workarounds.
python-libsbmlis 5.22.0 or newer, formerly 5.21.2, andpymetadata0.9.2 or newer, formerly 0.9.0.- A model definition writes
fbc:strictas the model of the document does: itsstrict, elsefbc:strict="false"when the document declares fbc, so a model definition with fbc content validates without the error 2020209 and a round trip keeps itsstrict. libsbml before 5.22.0 wrote the attribute twice on a<comp:modelDefinition>, which made the document unreadable, so sbmlutils did not write it and warned (sbmlteam/libsbml#495). - The name of an
EquationPart, a reactant, product or modifier of a reaction, is set whatever text it is, e.g. with a space, instead of being dropped with a warning (sbmlteam/libsbml#490). - The
sidandnameof aReplacedElement, aReplacedByand a nestedSbaseRefare written into an SBML L3V2 document and read back; in an L3V1 document they are reported as every other attribute of L3V2, with the advice to write L3V2. libsbml before 5.22.0 wrote them at no level (sbmlteam/libsbml#494). The construction diagnosticunwritten_attribute, which only these two attributes produced, is gone. - A
<comp:port>names a key-value pair of fbc version 3 by itscomp:idRefin an L3V1 document as well, since libsbml 5.22.0 reads thefbc:idof a pair back from it. UncertParametertakeslibsbml.DISTRIB_UNCERTTYPE_COEFFICIENTOFVARIATION, written ascoefficientOfVariation, the spelling of the distrib specification (sbmlteam/libsbml#492);DISTRIB_UNCERTTYPE_COEFFIENTOFVARIATION, the misspelling libsbml knew before, is still taken and written as it is.- The key-value pairs of a reactant and a product are read back by libsbml 5.22.0 (sbmlteam/libsbml#493), so a round trip compares them as it compares those of a modifier.
- A port still names a rule, an initial assignment and an event assignment by its metaid:
getElementBySIdanswers with them since libsbml 5.22.0, but the comp validator still rejects acomp:idRefto them (1020702). sbmlutils.converters.ode, the deprecated aliases of the ODE generator, works with sbmlsim-core 0.60.0 and newer again, which renamedFORMATSandFormattoODE_FORMATSandOdeFormatand maderender,render_templateandwritemethods ofOdeSystem: importing the module failed with anImportError. Its names keep their former API on top of the new one, for every sbmlsim-core from 0.36.0 on.