Skip to content

Commit

Permalink
fix TypeError when passing name to flow_to_workflow()
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Aug 14, 2023
1 parent 10aad48 commit 62eb2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobflow/managers/fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def flow_to_workflow(
fw = job_to_firework(job, store, parents=parents, parent_mapping=parent_mapping)
fireworks.append(fw)

return Workflow(fireworks, name=flow.name, **kwargs)
return Workflow(fireworks, name=kwargs.pop("name", flow.name), **kwargs)


def job_to_firework(
Expand Down

0 comments on commit 62eb2c9

Please sign in to comment.