Skip to content

Commit

Permalink
Declare a required fixme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrand62 committed Aug 19, 2024
1 parent 5df4048 commit ca098b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/plantdb/rest_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,13 @@ def parse_requests_tree(data):
The loaded (tree) graph object.
"""
import pickle
return pickle.load(BytesIO(data))
tree = pickle.load(BytesIO(data))
# FIXME: it would be better to return something that is JSON serializable...
# but the tree is not directed, so the `json_graph.tree_data` fails!
# from networkx.readwrite import json_graph
# data = json_graph.tree_data(tree, root=0)
# return json.dumps(data)
return tree


def parse_requests_json(data):
Expand Down

0 comments on commit ca098b4

Please sign in to comment.