Skip to content

Commit f99c3b1

Browse files
committed
Fix memmap path and add grid size debug print
1 parent 40ca81b commit f99c3b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/tile_composer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ def download_and_save(lat_max, lat_min, lon_min, lon_max, zoom, image_name):
9898
num_y = y_max - y_min + 1
9999

100100

101+
print(f"Tile grid: {num_x}x{num_y} tiles")
102+
101103
tile_size = None
102104
headers = {'User-Agent': 'Mozilla/5.0'}
103-
mmap_path = f"{image_name}_canvas.dat"
105+
mmap_path = f"/tmp/tile_canvas_{os.getpid()}.dat"
104106

105107
# Clean up stale memmap from a previous run
106108
if os.path.exists(mmap_path):

0 commit comments

Comments
 (0)