Skip to content

Commit

Permalink
fix bug which loses config if save before selecting nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Jun 28, 2023
1 parent e79b069 commit 3a7d75c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion countess/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def write_config(pipeline_graph: PipelineGraph, filename: str):
cp[node.name]["_notes"] = node.notes
for n, parent in enumerate(node.parent_nodes):
cp[node.name][f"_parent.{n}"] = parent.name
if node.plugin:
if node.config:
for k, v, _ in node.config:
cp[node.name][k] = repr(v)
elif node.plugin:
for k, v in node.plugin.get_parameters(base_dir):
cp[node.name][k] = repr(v)

Expand Down

0 comments on commit 3a7d75c

Please sign in to comment.