We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e34e5a commit 6e4f853Copy full SHA for 6e4f853
diplomat/__init__.py
@@ -2,7 +2,7 @@
2
A tool providing multi-animal tracking capabilities on top of other Deep learning based tracking software.
3
"""
4
5
-__version__ = "0.3.2"
+__version__ = "0.3.3"
6
# Can be used by functions to determine if diplomat was invoked through it's CLI interface.
7
CLI_RUN = False
8
diplomat/predictors/sfpe/file_io.py
@@ -44,8 +44,12 @@ def default(self, o: Any) -> Any:
44
if(isinstance(o, Path)):
45
return str(o)
46
47
+ if(isinstance(o, np.generic)):
48
+ return o.tolist()
49
+
50
to_json = getattr(o, "__tojson__", None)
51
if(to_json is None):
52
+ print(o)
53
return super().default(o)
54
d = to_json()
55
0 commit comments