eodash_catalog 0.3.9__py3-none-any.whl → 0.3.10__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.

Potentially problematic release.


This version of eodash_catalog might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Daniel Santillan <daniel.santillan@eox.at>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.3.9"
4
+ __version__ = "0.3.10"
eodash_catalog/utils.py CHANGED
@@ -468,6 +468,11 @@ def extract_extent_from_geoparquet(table) -> tuple[TemporalExtent, SpatialExtent
468
468
  # fallback to start_datetime
469
469
  min_datetime = pc.min(table["start_datetime"]).as_py()
470
470
  max_datetime = pc.max(table["start_datetime"]).as_py()
471
+ # Making sure time extent is timezone aware
472
+ if min_datetime and min_datetime.tzinfo is None:
473
+ min_datetime = min_datetime.replace(tzinfo=timezone.utc)
474
+ if max_datetime and max_datetime.tzinfo is None:
475
+ max_datetime = max_datetime.replace(tzinfo=timezone.utc)
471
476
  temporal = TemporalExtent([min_datetime, max_datetime])
472
477
  geoms = [wkb.loads(g.as_py()) for g in table["geometry"] if g is not None]
473
478
  bbox = sgeom.MultiPolygon(geoms).bounds
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eodash_catalog
3
- Version: 0.3.9
3
+ Version: 0.3.10
4
4
  Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
5
5
  Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
6
6
  Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
@@ -1,4 +1,4 @@
1
- eodash_catalog/__about__.py,sha256=SttQT5UJajcKv983PRXXlp4Lr9gewdOnLLA0uTJCqhI,137
1
+ eodash_catalog/__about__.py,sha256=D7-nLsC5m9LZVvFopfEKmc6PxUNosGlH9k7tOkjo78c,138
2
2
  eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
3
3
  eodash_catalog/duration.py,sha256=TBG7v1lCpbYowADK5uJ2M8kPxsvQneFAFi1NIE26dy4,10754
4
4
  eodash_catalog/endpoints.py,sha256=w1h-1FkgQxH7Sdgf2T1HP5GYbeCNnbSg3bVl9LcLJJY,61684
@@ -6,9 +6,9 @@ eodash_catalog/generate_indicators.py,sha256=YuB_Nsmya9dXzsOdS26LyObfyjKLvfv_B2L
6
6
  eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
7
7
  eodash_catalog/stac_handling.py,sha256=ZBk4AXtBNZ0Trr_oszhFGo8ypbGu3ox3KqfIVpc7ZuQ,25999
8
8
  eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
9
- eodash_catalog/utils.py,sha256=X40eQNRq8kh7ZATofX12V9EtUpMRdTTfkozBdqkKMJU,23746
10
- eodash_catalog-0.3.9.dist-info/METADATA,sha256=WKe1AUTdUnNvxDtHduUhiTA2k7XHmKjNVu18-Apt8Dg,3019
11
- eodash_catalog-0.3.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- eodash_catalog-0.3.9.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
- eodash_catalog-0.3.9.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
- eodash_catalog-0.3.9.dist-info/RECORD,,
9
+ eodash_catalog/utils.py,sha256=Dv28AYksex7lcRi4f4N3UP5svpv_DIHcFOTRaxd5BKM,24030
10
+ eodash_catalog-0.3.10.dist-info/METADATA,sha256=tNz16oc8HJ4uB4YNOGfH6kPnolVo7NfGtFSBlcJAPmU,3020
11
+ eodash_catalog-0.3.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ eodash_catalog-0.3.10.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
+ eodash_catalog-0.3.10.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
+ eodash_catalog-0.3.10.dist-info/RECORD,,