Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Sep 28, 2024
1 parent 0f5107a commit a4da7b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sleap/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import attr
import cattr
import h5py
import jsonpickle
import networkx as nx
import numpy as np
from networkx.readwrite import json_graph
Expand Down Expand Up @@ -1496,7 +1495,7 @@ def to_json(self, node_to_idx: Optional[Dict[Node, int]] = None) -> str:
Returns:
A string containing the JSON representation of the skeleton.
"""
jsonpickle.set_encoder_options("simplejson", sort_keys=True, indent=4)

if node_to_idx is not None:
# Map Nodes to int
indexed_node_graph = nx.relabel_nodes(G=self._graph, mapping=node_to_idx)
Expand Down

0 comments on commit a4da7b1

Please sign in to comment.