Skip to content

Commit

Permalink
Update generate_pdf.py: Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhhd2020 authored and matthiasschaub committed Oct 16, 2023
1 parent 85d9b18 commit 9e926f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sketch_map_tool/map_generation/generate_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def generate_pdf( # noqa: C901
map_pdf.seek(0)
map_frame.seek(0)

# Resize map_frame to avoid very large objects in upload processing of e.g. A0 maps
# Resize map_frame if a length of 2000 px is exceeded in one dimension to avoid very large objects in upload

Check failure on line 128 in sketch_map_tool/map_generation/generate_pdf.py

View workflow job for this annotation

GitHub Actions / Python Linting

Ruff (E501)

sketch_map_tool/map_generation/generate_pdf.py:128:89: E501 Line too long (112 > 88 characters)

Check failure on line 128 in sketch_map_tool/map_generation/generate_pdf.py

View workflow job for this annotation

GitHub Actions / Python Linting

Ruff (E501)

sketch_map_tool/map_generation/generate_pdf.py:128:89: E501 Line too long (112 > 88 characters)
# processing of e.g. A0 maps
map_frame = resize_png(map_frame, max_length=2000)

return map_pdf, map_frame
Expand Down

0 comments on commit 9e926f4

Please sign in to comment.