Skip to content

Commit

Permalink
Bump version to 0.8.5.1 in pyproject.toml; enhance graph rendering in…
Browse files Browse the repository at this point in the history
… PipelineManager to support cleanup option; update docstring for graph display method to clarify raw option usage.
  • Loading branch information
legout committed Dec 13, 2024
1 parent 72581ee commit 5bba5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ keywords = [
name = "FlowerPower"
readme = "README.md"
requires-python = ">= 3.11"
version = "0.8.5"
version = "0.8.5.1"

[project.scripts]
flowerpower = "flowerpower.cli:app"
Expand Down
7 changes: 5 additions & 2 deletions src/flowerpower/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,9 @@ def save_dag(
dag = self._display_all_function(name=name, reload=reload)

self._fs.makedirs("graphs", exist_ok=True)
dag.save(os.path.join(self._base_dir, f"graphs/{name}.{format}"))
dag.render(
os.path.join(self._base_dir, f"graphs/{name}"), format=format, cleanup=True
)
rich.print(
f"📊 Saved graph for {name} to {self._base_dir}/graphs/{name}.{format}"
)
Expand All @@ -1132,7 +1134,8 @@ def show_dag(
raw: bool = False,
):
"""
Display the graph of functions for a given name.
Display the graph of functions for a given name. By choosing the `raw` option, the graph object is returned.
The choosen format defines, which application is used to display the graph.
Args:
name (str): The name of the graph.
Expand Down

0 comments on commit 5bba5de

Please sign in to comment.