Skip to content

Commit 8c1b478

Browse files
committed
fix import
1 parent 9412d0e commit 8c1b478

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

python_workflow_definition/src/python_workflow_definition/jobflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def load_workflow_json(file_name):
197197
for k, v in content["nodes"].items():
198198
if isinstance(v, str) and "." in v:
199199
p, m = v.rsplit('.', 1)
200+
if p == "python_workflow_definition.pyiron_base":
201+
p = "python_workflow_definition.jobflow"
200202
mod = import_module(p)
201203
nodes_new_dict[int(k)] = getattr(mod, m)
202204
else:

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def load_workflow_json(project, file_name):
199199
for k, v in content["nodes"].items():
200200
if isinstance(v, str) and "." in v:
201201
p, m = v.rsplit('.', 1)
202+
if p == "python_workflow_definition.jobflow":
203+
p = "python_workflow_definition.pyiron_base"
202204
mod = import_module(p)
203205
nodes_new_dict[int(k)] = getattr(mod, m)
204206
else:

0 commit comments

Comments
 (0)