Closed p-j-smith closed 1 year ago
For a bit more context, the reason this issue wasn't picked up in CI is because the test for exporting a TrackerConfig
uses a minimal config that has no MotionModel
, HypothesisModel
, or ObjectModel
. The error is only raised when pydantic attempts to serialise the numpy arrays in these models. Although it's still not clear why there's an error now but not before.
https://github.com/quantumjot/BayesianTracker/pull/204 has broken the ability to convert
TrackerConfig
to json.Steps to reproduce
Output
The following error is raised:
Suggested solution
I've had a quick look into what is causing the error and it's not clear. The PR was so large and may have inadvertently broken other parts of the code. We could revert all the changes in the PR, add a test for converting
TrackerConfig
to json and writing to file, then start adding back the changes in #204