Skip to content
Snippets Groups Projects
Commit 2057f981 authored by crides's avatar crides
Browse files

fix(analysis_tree): load `id` from json

parent 4e4584bc
No related branches found
No related tags found
1 merge request!21Arch2023 merged
......@@ -94,6 +94,7 @@ class AnalysisTreeNode:
def from_dict(data) -> "AnalysisTreeNode":
return AnalysisTreeNode(
trace = ({aid: np.array(data['trace'][aid]) for aid in data["agent"].keys()} if data["type"] == "simtrace" else data["trace"]),
id = data['id'],
init = data['init'],
mode = data['mode'],
height = data['height'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment