eodash_catalog 0.2.0__py3-none-any.whl → 0.2.1__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.2.0"
4
+ __version__ = "0.2.1"
@@ -831,7 +831,7 @@ def add_visualization_info(
831
831
  if dimensions_config := endpoint_config.get("Dimensions", {}):
832
832
  for key, value in dimensions_config.items():
833
833
  # special replace for world_settlement_footprint
834
- if collection_config["EodashIdentifier"] == "WSF":
834
+ if collection_config.get("EodashIdentifier") == "WSF":
835
835
  value = value.replace(
836
836
  "{time}", datetimes is not None and str(datetimes[0].year) or "{time}"
837
837
  )
@@ -407,7 +407,8 @@ def add_to_catalog(
407
407
  if collection_config.get("Subtitle"):
408
408
  link.extra_fields["subtitle"] = collection_config["Subtitle"]
409
409
  link.extra_fields["title"] = collection.title
410
- link.extra_fields["code"] = collection_config["EodashIdentifier"]
410
+ if collection_config.get("EodashIdentifier"):
411
+ link.extra_fields["code"] = collection_config["EodashIdentifier"]
411
412
  link.extra_fields["id"] = collection_config["Name"]
412
413
  if collection_config.get("Themes"):
413
414
  link.extra_fields["themes"] = collection_config["Themes"]
@@ -1,4 +1,4 @@
1
- from datetime import datetime
1
+ from datetime import datetime, timezone
2
2
 
3
3
  import requests
4
4
  import spdx_lookup as lookup
@@ -44,7 +44,7 @@ def get_or_create_collection(
44
44
  spatial_extent,
45
45
  ]
46
46
  )
47
- temporal_extent = TemporalExtent([[datetime.now(), None]])
47
+ temporal_extent = TemporalExtent([[datetime.now(tz=timezone.utc), None]])
48
48
  if endpoint_config:
49
49
  times_datetimes = get_collection_datetimes_from_config(endpoint_config)
50
50
  if len(times_datetimes) > 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eodash_catalog
3
- Version: 0.2.0
3
+ Version: 0.2.1
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
@@ -0,0 +1,14 @@
1
+ eodash_catalog/__about__.py,sha256=c99Cdt5zAgv8ECLNyPwczOXULCCEQldhtr8lFnXUAQ0,137
2
+ eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
3
+ eodash_catalog/duration.py,sha256=B6XOZfvNU7SuqpxuVtT1kNKODoOQJXDI6mocvA_U1ik,10816
4
+ eodash_catalog/endpoints.py,sha256=3ejenyoRp3aT5YyPP_NcUy9nT1OWZydtya34qsQurk4,47521
5
+ eodash_catalog/generate_indicators.py,sha256=8h5Xa9WZGXKsUZQbps38Jllt7KFvx7K7mZWzggtxzks,20785
6
+ eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
7
+ eodash_catalog/stac_handling.py,sha256=waw8qRjwjdbDBRtialc4bG3WSjXAATklc-W5kLKywqE,25548
8
+ eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
9
+ eodash_catalog/utils.py,sha256=BdFSiF0-M6NlnSKQGE0REI9rMPNmqqG4QjWqmaXN6g8,16946
10
+ eodash_catalog-0.2.1.dist-info/METADATA,sha256=tif4YQQCZ5-69IteZQ9VIoOjmFW0__Y5DiphYhA_ZqI,3019
11
+ eodash_catalog-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ eodash_catalog-0.2.1.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
+ eodash_catalog-0.2.1.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
+ eodash_catalog-0.2.1.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- eodash_catalog/__about__.py,sha256=wz_1tqgo2awu--1QRD689s1lG-bcK8l7ezdoS3LQBMk,137
2
- eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
3
- eodash_catalog/duration.py,sha256=B6XOZfvNU7SuqpxuVtT1kNKODoOQJXDI6mocvA_U1ik,10816
4
- eodash_catalog/endpoints.py,sha256=8V94KLExV_Ut6VgTyqoUw29kdAsV0vbcDiarE051jKk,47517
5
- eodash_catalog/generate_indicators.py,sha256=Zn7pMqIkLMmg7t0BwIqyygQgNLjX0xq39xfHjUZ2f38,20731
6
- eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
7
- eodash_catalog/stac_handling.py,sha256=sJZ9PUWyTQvqjTBUNEC0SsRIlNv_5mpcjyGqjae-P0Y,25523
8
- eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
9
- eodash_catalog/utils.py,sha256=BdFSiF0-M6NlnSKQGE0REI9rMPNmqqG4QjWqmaXN6g8,16946
10
- eodash_catalog-0.2.0.dist-info/METADATA,sha256=J0Dzt3SBE7aoQ-PJwt-SdYpeH87CVpo0w92pmI9mbLI,3019
11
- eodash_catalog-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- eodash_catalog-0.2.0.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
13
- eodash_catalog-0.2.0.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
14
- eodash_catalog-0.2.0.dist-info/RECORD,,