ssb-sgis 1.0.11__py3-none-any.whl → 1.0.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sgis/maps/explore.py CHANGED
@@ -211,7 +211,11 @@ def _single_band_to_arr(band, mask, name, raster_data_dict):
211
211
  raster_data_dict["arr"] = arr
212
212
  raster_data_dict["bounds"] = bounds
213
213
  raster_data_dict["label"] = band.name or name
214
- raster_data_dict["date"] = band.date
214
+ try:
215
+ raster_data_dict["date"] = band.date
216
+ except Exception:
217
+ raster_data_dict["date"] = None
218
+
215
219
  return True
216
220
 
217
221
 
@@ -1386,7 +1390,10 @@ def _add_one_image(
1386
1390
  raster_data_dict["bounds"] = bounds
1387
1391
  raster_data_dict["cmap"] = None
1388
1392
  raster_data_dict["label"] = _determine_label(image, image.name or name)
1389
- raster_data_dict["date"] = image.date
1393
+ try:
1394
+ raster_data_dict["date"] = image.date
1395
+ except Exception:
1396
+ raster_data_dict["date"] = None
1390
1397
 
1391
1398
  return raster_data_dict
1392
1399
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ssb-sgis
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Summary: GIS functions used at Statistics Norway.
5
5
  Home-page: https://github.com/statisticsnorway/ssb-sgis
6
6
  License: MIT
@@ -24,7 +24,7 @@ sgis/io/opener.py,sha256=HWO3G1NB6bpXKM94JadCD513vjat1o1TFjWGWzyVasg,898
24
24
  sgis/io/read_parquet.py,sha256=FvZYv1rLkUlrSaUY6QW6E1yntmntTeQuZ9ZRgCDO4IM,3776
25
25
  sgis/maps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  sgis/maps/examine.py,sha256=Pb0dH8JazU5E2svfQrzHO1Bi-sjy5SeyY6zoeMO34jE,9369
27
- sgis/maps/explore.py,sha256=h6_E-NRohMkVw1ThUm-50Nl3O-UYtWQZ1glmS9cdlTY,45631
27
+ sgis/maps/explore.py,sha256=QYPnpiLmCwMIduytNJ9K9xMUGPmb76i3ONfAH_WeNO0,45782
28
28
  sgis/maps/httpserver.py,sha256=7Od9JMCtntcIQKk_TchetojMHzFHT9sPw7GANahI97c,1982
29
29
  sgis/maps/legend.py,sha256=lVRVCkhPmJRjGK23obFJZAO3qp6du1LYnobkkN7DPkc,26279
30
30
  sgis/maps/map.py,sha256=smaf9i53EoRZWmZjn9UuqlhzUvVs1XKo2ItIpHxyuik,29592
@@ -54,7 +54,7 @@ sgis/raster/indices.py,sha256=-J1HYmnT240iozvgagvyis6K0_GHZHRuUrPOgyoeIrY,223
54
54
  sgis/raster/regex.py,sha256=kYhVpRYzoXutx1dSYmqMoselWXww7MMEsTPmLZwHjbM,3759
55
55
  sgis/raster/sentinel_config.py,sha256=nySDqn2R8M6W8jguoBeSAK_zzbAsqmaI59i32446FwY,1268
56
56
  sgis/raster/zonal.py,sha256=D4Gyptw-yOLTCO41peIuYbY-DANsJCG19xXDlf1QAz4,2299
57
- ssb_sgis-1.0.11.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
58
- ssb_sgis-1.0.11.dist-info/METADATA,sha256=ndFvrKxnD572cBE2VqGpjeONaHQTEl6xy3l_JGw5IsA,11741
59
- ssb_sgis-1.0.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
60
- ssb_sgis-1.0.11.dist-info/RECORD,,
57
+ ssb_sgis-1.0.12.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
58
+ ssb_sgis-1.0.12.dist-info/METADATA,sha256=Ys8MxFw0PN2sbDAQFQiYsS5wNIFlV02Qb9n90Iegqvs,11741
59
+ ssb_sgis-1.0.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
60
+ ssb_sgis-1.0.12.dist-info/RECORD,,