Skip to content

Commit

Permalink
breaking: Workflow.from_firework method name capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 9, 2024
1 parent f47c01b commit 3076c91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fireworks/core/firework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,10 +1331,10 @@ def from_dict(cls, m_dict: dict[str, Any]) -> Workflow:
created_on,
updated_on,
)
return Workflow.from_Firework(Firework.from_dict(m_dict))
return Workflow.from_firework(Firework.from_dict(m_dict))

@classmethod
def from_Firework(cls, fw: Firework, name: str | None = None, metadata=None) -> Workflow:
def from_firework(cls, fw: Firework, name: str | None = None, metadata=None) -> Workflow:
"""
Return Workflow from the given Firework.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# create the workflow and store it in the database
my_fw = Firework([HelloTask()])
my_wflow = Workflow.from_Firework(my_fw)
my_wflow = Workflow.from_firework(my_fw)
lp.add_wf(my_wflow)

# run the workflow
Expand Down

0 comments on commit 3076c91

Please sign in to comment.