AMICI-dev/AMICI

Result of amici.de_export.DEModel.sparseeq sometimes contains zeros

Closed this issue · 1 comments

The result of amici.de_export.DEModel.sparseeq sometimes contains some zeros. I'd say it shouldn't. Needs further investigation.

Okay, this seems to only be a problem with the current sympy master (tested: 0ededfcfc033ddca2d1d54a0eda85bf53c63761c):

IPython console for SymPy 1.13.dev (Python 3.12.2-64-bit) (ground types: python)
In [1]: Float(0) == 0
Out[1]: False
In [2]: Float(0).is_zero
Out[2]: True

vs 1.12:

Python console for SymPy 1.12 (Python 3.12.2-64-bit) (ground types: python)
>>> Float(0) == 0
True
>>> Float(0).is_zero
True

Maybe a consequence of sympy/sympy#25614.