Skip to content

Commit bc77c7e

Browse files
committed
convert to list
1 parent c5ebea2 commit bc77c7e

File tree

1 file changed

+3
-0
lines changed
  • python_workflow_definition/src/python_workflow_definition

1 file changed

+3
-0
lines changed

python_workflow_definition/src/python_workflow_definition/pyiron_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from inspect import isfunction
33
import json
44

5+
import numpy as np
56
from pyiron_base import job
67
from pyiron_base.project.delayed import DelayedObject
78

@@ -231,6 +232,8 @@ def write_workflow_json(delayed_object, file_name="workflow.json"):
231232
for k, v in nodes_new_dict.items():
232233
if isfunction(v):
233234
nodes_store_dict[k] = v.__module__ + "." + v.__name__
235+
elif isinstance(v, np.ndarray):
236+
nodes_store_dict[k] = v.tolist()
234237
else:
235238
nodes_store_dict[k] = v
236239

0 commit comments

Comments
 (0)