You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ujson library relatively recently changed how it encodes infinity from 'Inf' to 'Infinity'. When it tries to read a file with the old 'Inf's it raises the JSONDecodeError above.
I had a look in the idata.json file and it had 'Inf's (i.e. not 'Infinity's) in it, so I suspect the ujson reading the file might be incompatible with the one that made it.
I tried (with ujson 5.7.0 and arviz 0.14.0) doing the following and it worked ok:
I have two
idata.json
outputs generated bymaud sample
(maud-metabolic-models==0.4.0.2
) and none of them can be read back to memory.Traceback:
Without
ujson
(using the stdlibjson
module), it also fails but with a more cryptic error.The text was updated successfully, but these errors were encountered: