Serializable cfg
entries
#392
Labels
Bug
An error that is serious but does not break (parts of) the package. However, it clearly impedes the
cfg
entries
#392
As reported by @kajal5888, if a frontend parameter (e.g.
foilim
) is set via a non-serializable datatype (like numpy'sint64
) the standardspy.save
fails because thecfg
dictionary can't be dumped in to the accompanying json. Easiest to reproduce is sth like this:this fails with
TypeError: Object of type int64 is not JSON serializable
How to Fix Idea
When updating the
.cfg
property of a Syncopy data object (for replayabilty) inside a frontend, it should be checked that all values are serializable, and if possible casted to appropriate types. Sonp.int64
->int
,np.float64
-> float and so onThe text was updated successfully, but these errors were encountered: