materialsproject / fireworks

The Fireworks Workflow Management Repo.
https://materialsproject.github.io/fireworks
Other
362 stars 185 forks source link

[Bug]: parents not recognized when adding FW from inside FW #539

Closed janklinux closed 4 weeks ago

janklinux commented 4 weeks ago

Code snippet

flow = list()
flow.append(task_1, parents=None)
for i in range(4):
  flow.append(task_I, parents=flow[-1])
lpad.add_wf(Workflow(flow))

What happened?

The above code idea works when running in a shell but fails to recognize dependencies when run in a FW

1) I am running python code that generates a structure 2) When using a multi-stage workflow with linear dependency (5 tasks of which the previous is the parent of the next except for the first in one workflow) this dependency is lost

Is this intended or am I doing something wrong?

janK

Version

2.0.3

Which OS?

Log output

No response

janklinux commented 4 weeks ago

never mind, it was NOT a fireworks issue, it was an issue having to make local copies of a parameter dictionary.

janK