When setting parameter values to zero (either directly via PyEnzyme methods or via a YAML file for kinetic model fitting), the resulting values are not written out to the XML document and are thus also not converted to the PSC file, resulting in model errors when loading.
When setting parameter values to zero (either directly via PyEnzyme methods or via a YAML file for kinetic model fitting), the resulting values are not written out to the XML document and are thus also not converted to the PSC file, resulting in model errors when loading.
The reason is that this statement evaluates to false: https://github.com/EnzymeML/PyEnzyme/blob/292d0ba4c0a44097a1eb47b874b15d580a13358b/pyenzyme/enzymeml/tools/enzymemlwriter.py#L533-L534 as does this one: https://github.com/EnzymeML/PyEnzyme/blob/292d0ba4c0a44097a1eb47b874b15d580a13358b/pyenzyme/enzymeml/tools/enzymemlwriter.py#L731-L732
It can be fixed by
but I am not sure if these are all of the cases. I already fixed a number of these in
TL_Pysces.py
, refer to branchfit_replicates
.In all cases when evaluating conditionals for the presence of numerical values (
float
orint
), this should be checked withto avoid a false evaluation of this expression when
value=0
.