Skip to content

Commit

Permalink
switch out jsonpickle.encode
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Sep 24, 2024
1 parent fd14ad0 commit 7fa9517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sleap/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,9 @@ def to_json(self, node_to_idx: Optional[Dict[Node, int]] = None) -> str:
data = graph
print(f"data: {data}")

json_str = jsonpickle.encode(data)
# json_str = jsonpickle.encode(data)
encoder = SkeletonEncoder()
json_str = encoder.encode(data)
print(f"json_str: {json_str}")

return json_str
Expand Down

0 comments on commit 7fa9517

Please sign in to comment.