Closed liunelson closed 1 month ago
These have to be objects of type SympyExprStr
, not simple sympy.Expr
. So e.g.,
'shape': SympyExprStr(sympy.Symbol('b_shape') ** sympy.Float(1.5)),
Thanks, adding SympyExpStr
to all the expressions fixed all the serialization errors that I had!
I have this model: model_seirhd.json
I edited its parameters to try out the new distribution parameter feature:
I get this error when I try to serialize the model:
It seems that
template_model_to_petri_json
did not generate a string representation of thesympy.core.add.Add
object in all ther*
distribution parameters.