Skip to content

Commit

Permalink
Continue to/from_dict (in Progress 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsipu committed Dec 15, 2024
1 parent b997020 commit d3fb3fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mne_pipeline_hd/gui/node/base_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,11 @@ def to_dict(self):
@classmethod
def from_dict(cls, node_dict, ct):
node = cls(ct, name=node_dict["name"])
print(node) ## only for ruff
# Todo: Continue here
node.xy_pos = node_dict["pos"]
port_dict = dict()
for port_id, port_dict in node_dict["inputs"].items():
port = node.add_input()
port_dict[port_id] = port

# ----------------------------------------------------------------------------------
# Qt methods
Expand Down

0 comments on commit d3fb3fe

Please sign in to comment.