Skip to content

Commit

Permalink
fix(create-cart-diagram): backslash in f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
yannforget committed Nov 3, 2024
1 parent 1ee941e commit 6b68b31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions create-cart-diagram/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ def generate_diagram(
current_run.log_info("Merged urban and rural CARTs")

mermaid = cart_diagram(root)
current_run.log_info(
f"Generated CART mermaid diagram ({len(mermaid.split('\n'))} lines)"
)
n_lines = len(mermaid.split("\n"))
current_run.log_info(f"Generated CART mermaid diagram ({n_lines} lines)")

fp = output_dir / f"{version_name}_diagram.txt"
with open(fp, "w") as f:
Expand Down

0 comments on commit 6b68b31

Please sign in to comment.