rs-client-libraries 0.2a9__tar.gz → 99.99__tar.gz

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.
Files changed (20) hide show
  1. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/PKG-INFO +1 -1
  2. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/pyproject.toml +1 -1
  3. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_client/__init__.py +1 -1
  4. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_client/cadip_client.py +2 -2
  5. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_client/rs_client.py +1 -1
  6. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_client/stac_client.py +2 -3
  7. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_workflows/__init__.py +1 -1
  8. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_workflows/s1_l0.py +1 -1
  9. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_workflows/staging.py +4 -3
  10. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/LICENSE +0 -0
  11. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/README.adoc +0 -0
  12. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_client/auxip_client.py +0 -0
  13. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/__init__.py +0 -0
  14. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/config.py +0 -0
  15. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/logging.py +0 -0
  16. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/opentelemetry.py +0 -0
  17. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/serialization.py +0 -0
  18. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_common/utils.py +0 -0
  19. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_workflows/config/dpr_config_template.yaml +0 -0
  20. {rs_client_libraries-0.2a9 → rs_client_libraries-99.99}/rs_workflows/example.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rs-client-libraries
3
- Version: 0.2a9
3
+ Version: 99.99
4
4
  Summary: Copernicus Sentinel rs-client library and processing workflows.
5
5
  Home-page: https://home.rs-python.eu/
6
6
  License: Apache-2.0
@@ -4,7 +4,7 @@ version = "0.0.0" # see: https://github.com/mtkennerly/poetry-dynamic-versioning
4
4
 
5
5
  [tool.poetry]
6
6
  name = "rs-client-libraries"
7
- version = "0.2a9"
7
+ version = "99.99"
8
8
  description = "Copernicus Sentinel rs-client library and processing workflows."
9
9
  license = "Apache-2.0"
10
10
  authors = ["ESA under contract with Airbus and CS <ops_coprs@airbus.com>"]
@@ -15,4 +15,4 @@
15
15
  """rsclient main module."""
16
16
 
17
17
  # Set automatically by running `poetry dynamic-versioning`
18
- __version__ = "0.2a9"
18
+ __version__ = "99.99"
@@ -32,7 +32,7 @@ class CadipClient(RsClient):
32
32
  station (ECadipStation): Cadip station
33
33
  """
34
34
 
35
- def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments
35
+ def __init__( # pylint: disable=too-many-arguments
36
36
  self,
37
37
  rs_server_href: str | None,
38
38
  rs_server_api_key: str | None,
@@ -90,7 +90,7 @@ class CadipClient(RsClient):
90
90
  # Call RS-Server endpoints #
91
91
  ############################
92
92
 
93
- def search_sessions( # pylint: disable=too-many-arguments, too-many-positional-arguments
93
+ def search_sessions( # pylint: disable=too-many-arguments
94
94
  self,
95
95
  session_ids: list[str] | None = None,
96
96
  start_date: datetime | None = None,
@@ -344,7 +344,7 @@ class RsClient: # pylint: disable=too-many-instance-attributes
344
344
  self.logger.exception(f"Staging file exception for {filename}:", e)
345
345
  raise RuntimeError(f"Staging file exception for {filename}") from e
346
346
 
347
- def search_stations( # pylint: disable=too-many-arguments, too-many-positional-arguments
347
+ def search_stations( # pylint: disable=too-many-arguments
348
348
  self,
349
349
  start_date: datetime,
350
350
  stop_date: datetime,
@@ -52,8 +52,7 @@ class StacClient(RsClient, Client): # type: ignore # pylint: disable=too-many-a
52
52
  # Initialisation #
53
53
  ##################
54
54
 
55
- # NOTE: super-init is called in .open(...)
56
- def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments, super-init-not-called
55
+ def __init__( # pylint: disable=too-many-arguments,super-init-not-called # super-init is called in .open(...)
57
56
  self,
58
57
  id: str, # pylint: disable=redefined-builtin
59
58
  description: str,
@@ -89,7 +88,7 @@ class StacClient(RsClient, Client): # type: ignore # pylint: disable=too-many-a
89
88
  )
90
89
 
91
90
  @classmethod
92
- def open( # type: ignore # pylint: disable=arguments-renamed, too-many-arguments, too-many-positional-arguments
91
+ def open( # type: ignore # pylint: disable=arguments-renamed, too-many-arguments
93
92
  cls,
94
93
  # RsClient parameters
95
94
  rs_server_href: str | None,
@@ -15,4 +15,4 @@
15
15
  """rs-workflows main module."""
16
16
 
17
17
  # Set automatically by running `poetry dynamic-versioning`
18
- __version__ = "0.2a9"
18
+ __version__ = "99.99"
@@ -334,7 +334,7 @@ def get_adgs_catalog_data(
334
334
  class PrefectS1L0FlowConfig: # pylint: disable=too-few-public-methods, too-many-instance-attributes
335
335
  """Configuration for Prefect flow related to S1 Level 0 data."""
336
336
 
337
- def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments
337
+ def __init__( # pylint: disable=too-many-arguments
338
338
  self,
339
339
  stac_client: StacClient,
340
340
  url_dpr: str,
@@ -16,6 +16,7 @@
16
16
 
17
17
  import time
18
18
  from datetime import datetime
19
+ from shapely import geometry as geom
19
20
 
20
21
  import dateutil.parser
21
22
  import numpy as np
@@ -24,7 +25,6 @@ from prefect import exceptions, flow, get_run_logger, task
24
25
  from prefect_dask.task_runners import DaskTaskRunner
25
26
  from pystac.asset import Asset
26
27
  from pystac.item import Item
27
- from shapely import geometry as geom
28
28
 
29
29
  from rs_client.auxip_client import AuxipClient
30
30
  from rs_client.cadip_client import CadipClient
@@ -129,6 +129,7 @@ def update_stac_catalog( # pylint: disable=too-many-locals
129
129
  if geometry["type"] == "Polygon":
130
130
  poly = geom.Polygon(geometry["coordinates"][0])
131
131
  if not (poly.is_valid and poly.is_closed):
132
+
132
133
  coords = poly.exterior.coords.xy
133
134
  geometry["coordinates"] = [[list(coord) for coord in zip(coords[0], coords[1])]]
134
135
 
@@ -195,7 +196,7 @@ class PrefectTaskConfig(PrefectCommonConfig): # pylint: disable=too-few-public-
195
196
 
196
197
  """
197
198
 
198
- def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments
199
+ def __init__( # pylint: disable=too-many-arguments
199
200
  self,
200
201
  rs_client: AuxipClient | CadipClient,
201
202
  mission,
@@ -401,7 +402,7 @@ class PrefectFlowConfig(PrefectCommonConfig): # pylint: disable=too-few-public-
401
402
  limit: The limit for the number of the files in the list retrieved from the ADGS/CADIP station (optional).
402
403
  """
403
404
 
404
- def __init__( # pylint: disable=too-many-arguments, too-many-positional-arguments
405
+ def __init__( # pylint: disable=too-many-arguments
405
406
  self,
406
407
  rs_client: AuxipClient | CadipClient,
407
408
  mission,