Spaces:
Running
on
L4
Running
on
L4
Update helpers/functional.py
Browse files- helpers/functional.py +1 -1
helpers/functional.py
CHANGED
|
@@ -150,10 +150,10 @@ def cell_to_image(cell, return_centre=False, return_gridcell=False, return_times
|
|
| 150 |
|
| 151 |
if row is not None:
|
| 152 |
parquet_url, parquet_row, meta_row = row
|
| 153 |
-
year = int(meta_row.iloc[0].timestamp[:4])
|
| 154 |
|
| 155 |
# AEF is special - it's read live
|
| 156 |
if source == 'AlphaEarth Embeddings':
|
|
|
|
| 157 |
return cell_to_aef(cell, year, return_centre=return_centre, return_gridcell=return_gridcell, return_timestamp=return_timestamp)
|
| 158 |
|
| 159 |
|
|
|
|
| 150 |
|
| 151 |
if row is not None:
|
| 152 |
parquet_url, parquet_row, meta_row = row
|
|
|
|
| 153 |
|
| 154 |
# AEF is special - it's read live
|
| 155 |
if source == 'AlphaEarth Embeddings':
|
| 156 |
+
year = int(meta_row.iloc[0].timestamp[:4])
|
| 157 |
return cell_to_aef(cell, year, return_centre=return_centre, return_gridcell=return_gridcell, return_timestamp=return_timestamp)
|
| 158 |
|
| 159 |
|