Can't serialize optional fps=None
attribute when writing ds to file
#420
Labels
bug
Something isn't working
fps=None
attribute when writing ds to file
#420
Describe the bug
When loading a dataset and not providing a positive float value for
fps
, it gets automatically assigned aNone
value.This is problematic because None is non-serializable when writing to NetCDF file.
Setting
load_poses.from_file(..., fps="None")
doesn't work, because movement enforces fps to be a positive float.To Reproduce
raises:
Expected behaviour
Either that:
fps
is truly optional and doesn't get added to the datasetfps
is optionally a string for the dataset attributes validation. and gets assigned the value of"None"
in the case abovefps
is required when loading a dataset from fileThe text was updated successfully, but these errors were encountered: