From ac8a626425a4f53eaf0358a31c72546075a14b17 Mon Sep 17 00:00:00 2001 From: konstntokas Date: Tue, 26 Nov 2024 09:30:27 +0100 Subject: [PATCH] debug --- xcube_stac/helper.py | 2 +- xcube_stac/store.py | 3 --- xcube_stac/store_mode.py | 5 +---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/xcube_stac/helper.py b/xcube_stac/helper.py index 2fdb5cf..24975d9 100644 --- a/xcube_stac/helper.py +++ b/xcube_stac/helper.py @@ -322,7 +322,7 @@ def search_items( yield item -class HelperCdseCreodiasVM(Helper): +class HelperCdseCreodiansVM(Helper): def __init__(self): super().__init__() diff --git a/xcube_stac/store.py b/xcube_stac/store.py index 3af932c..8cdb7b8 100644 --- a/xcube_stac/store.py +++ b/xcube_stac/store.py @@ -304,9 +304,6 @@ def __init__( client_kwargs=dict(endpoint_url=CDSE_S3_ENDPOINT), ), ) - import pdb - - pdb.set_trace() if creodias_vm: self._helper = HelperCdseCreodiasVM() else: diff --git a/xcube_stac/store_mode.py b/xcube_stac/store_mode.py index 6c3ccd7..bd43b63 100644 --- a/xcube_stac/store_mode.py +++ b/xcube_stac/store_mode.py @@ -263,9 +263,6 @@ def build_dataset_from_item( **open_params_asset, ) elif params["protocol"] == "file": - import pdb - - pdb.set_trace() opener = self._get_file_accessor(params) ds_asset = opener.open_data( params, @@ -321,7 +318,7 @@ def _get_file_accessor(self, access_params: dict) -> S3DataAccessor: if self._file_accessor is None: self._file_accessor = self._helper.file_accessor(access_params["root"]) - return self._s3_accessor + return self._file_accessor def _get_s3_accessor(self, access_params: dict) -> S3DataAccessor: """This function returns the S3 data accessor associated with the