From 45ea753358c306156328ad7f7fb003dee28030d5 Mon Sep 17 00:00:00 2001 From: egbendito Date: Thu, 13 Mar 2025 16:22:27 +0300 Subject: [PATCH 1/2] fix download --- region_similarity/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/region_similarity/export.py b/region_similarity/export.py index f384f95..4792935 100644 --- a/region_similarity/export.py +++ b/region_similarity/export.py @@ -125,7 +125,7 @@ def export_multiple_images(cells, job_dir, img, resolution, m): # Save URLs to a file random_hash = generate_random_hash() - url_file = Path("../public") / f"urls_{random_hash}.txt" + url_file = Path("./public") / f"urls_{random_hash}.txt" url_file.parent.mkdir(exist_ok=True) url_file.write_text("\n".join(urls)) @@ -183,7 +183,7 @@ def export_image(e, m): img = ee.Image.cat([features, result]).reproject(crs='EPSG:4326', scale=1000) # Set the image resolution in meters - resolution = 100 + resolution = 1000 # Convert the image resolution from meters to degrees meters_per_degree = 111320 # Approximation at the equator From d7f0e770faf202d2ed4a6dc014dbcb3e080b2a3f Mon Sep 17 00:00:00 2001 From: egbendito Date: Thu, 13 Mar 2025 16:27:16 +0300 Subject: [PATCH 2/2] fix ipython.core.display module error --- scripts/app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/app.py b/scripts/app.py index ecb4218..bea13cb 100644 --- a/scripts/app.py +++ b/scripts/app.py @@ -21,7 +21,6 @@ import ipywidgets as widgets from ipyleaflet import WidgetControl import solara -from IPython.core.display import display from region_similarity.map import ( reset_map,