Skip to content

Commit 5bba5de

Browse files
committed
Bump version to 0.8.5.1 in pyproject.toml; enhance graph rendering in PipelineManager to support cleanup option; update docstring for graph display method to clarify raw option usage.
1 parent 72581ee commit 5bba5de

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ keywords = [
2727
name = "FlowerPower"
2828
readme = "README.md"
2929
requires-python = ">= 3.11"
30-
version = "0.8.5"
30+
version = "0.8.5.1"
3131

3232
[project.scripts]
3333
flowerpower = "flowerpower.cli:app"

src/flowerpower/pipeline.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,9 @@ def save_dag(
11191119
dag = self._display_all_function(name=name, reload=reload)
11201120

11211121
self._fs.makedirs("graphs", exist_ok=True)
1122-
dag.save(os.path.join(self._base_dir, f"graphs/{name}.{format}"))
1122+
dag.render(
1123+
os.path.join(self._base_dir, f"graphs/{name}"), format=format, cleanup=True
1124+
)
11231125
rich.print(
11241126
f"📊 Saved graph for {name} to {self._base_dir}/graphs/{name}.{format}"
11251127
)
@@ -1132,7 +1134,8 @@ def show_dag(
11321134
raw: bool = False,
11331135
):
11341136
"""
1135-
Display the graph of functions for a given name.
1137+
Display the graph of functions for a given name. By choosing the `raw` option, the graph object is returned.
1138+
The choosen format defines, which application is used to display the graph.
11361139
11371140
Args:
11381141
name (str): The name of the graph.

0 commit comments

Comments
 (0)