Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stew-McD committed Mar 8, 2024
1 parent f80f7d2 commit 7037807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/batteries/similar_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
title_height = 40 # Space for title

# Calculate total page height based on pairs
for edip, T - reX in pairs.items():
for edip, T_reX in pairs.items():
edip_file = next((f for f in os.listdir(svg_dir) if edip in f), None)
T_reX_file = next((f for f in os.listdir(svg_dir) if T - reX in f), None)
T_reX_file = next((f for f in os.listdir(svg_dir) if T_reX in f), None)

if edip_file and T_reX_file:
edip_svg = svg2rlg(os.path.join(svg_dir, edip_file))
Expand Down Expand Up @@ -69,9 +69,9 @@
print("Metadata set.")

# Loop through pairs and add SVG files to the PDF
for edip, T - reX in pairs.items():
for edip, T_reX in pairs.items():
edip_file = next((f for f in os.listdir(svg_dir) if edip in f), None)
T_reX_file = next((f for f in os.listdir(svg_dir) if T - reX in f), None)
T_reX_file = next((f for f in os.listdir(svg_dir) if T_reX in f), None)

if edip_file and T_reX_file:
# Draw the first SVG
Expand Down

0 comments on commit 7037807

Please sign in to comment.