Spaces:
Sleeping
Sleeping
:see_no_evil:
Browse files- app.py +0 -2
- utilities.py +0 -1
app.py
CHANGED
@@ -179,8 +179,6 @@ if submitted:
|
|
179 |
gdf = get_polygon(gdf_name, area_source, con)
|
180 |
url = compute_hexes(gdf, gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
|
181 |
layer = HexagonLayer(url, v_scale)
|
182 |
-
digest = hashlib.md5(str(layer).encode()).hexdigest()
|
183 |
-
print(digest)
|
184 |
|
185 |
m = leafmap.Map(style=terrain_styling(), center=[-120, 37.6], zoom=2, pitch=35, bearing=10)
|
186 |
if gdf is not None:
|
|
|
179 |
gdf = get_polygon(gdf_name, area_source, con)
|
180 |
url = compute_hexes(gdf, gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
|
181 |
layer = HexagonLayer(url, v_scale)
|
|
|
|
|
182 |
|
183 |
m = leafmap.Map(style=terrain_styling(), center=[-120, 37.6], zoom=2, pitch=35, bearing=10)
|
184 |
if gdf is not None:
|
utilities.py
CHANGED
@@ -186,7 +186,6 @@ def unique_path(gdf_name, rank, taxa, zoom, distinct_taxa):
|
|
186 |
#gdf_hash = str(pd.util.hash_pandas_object(gdf).sum())
|
187 |
text = [gdf_name, rank, taxa, str(zoom), distinct_taxa]
|
188 |
sig = "-".join(text)
|
189 |
-
print(sig)
|
190 |
sig = hashlib.sha1(sig.encode()).hexdigest()
|
191 |
dest = "cache/gbif_" + sig + ".json"
|
192 |
return dest
|
|
|
186 |
#gdf_hash = str(pd.util.hash_pandas_object(gdf).sum())
|
187 |
text = [gdf_name, rank, taxa, str(zoom), distinct_taxa]
|
188 |
sig = "-".join(text)
|
|
|
189 |
sig = hashlib.sha1(sig.encode()).hexdigest()
|
190 |
dest = "cache/gbif_" + sig + ".json"
|
191 |
return dest
|