Spaces:
Running
Running
mikonvergence
commited on
Commit
•
c60e230
1
Parent(s):
7605761
Update helpers/functional.py
Browse files- helpers/functional.py +4 -1
helpers/functional.py
CHANGED
@@ -111,7 +111,10 @@ def map_to_image(map, return_centre=False, return_gridcell=False, return_timesta
|
|
111 |
if row is not None:
|
112 |
parquet_url, parquet_row, meta_row = row
|
113 |
|
114 |
-
|
|
|
|
|
|
|
115 |
# 4. acquire image # X. update map
|
116 |
lat, lon = meta_row.centre_lat.item(), meta_row.centre_lon.item()
|
117 |
|
|
|
111 |
if row is not None:
|
112 |
parquet_url, parquet_row, meta_row = row
|
113 |
|
114 |
+
try:
|
115 |
+
img = row2image(parquet_url, parquet_row)
|
116 |
+
except:
|
117 |
+
return None
|
118 |
# 4. acquire image # X. update map
|
119 |
lat, lon = meta_row.centre_lat.item(), meta_row.centre_lon.item()
|
120 |
|