diff --git a/src/spikeinterface/core/core_tools.py b/src/spikeinterface/core/core_tools.py index 4cd902eff9..1f2e644be6 100644 --- a/src/spikeinterface/core/core_tools.py +++ b/src/spikeinterface/core/core_tools.py @@ -101,7 +101,7 @@ def default(self, obj): if isinstance(obj, Path): return str(obj) - + if isinstance(obj, Motion): return obj.to_dict()