Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Nov 26, 2024
1 parent 48ade6b commit ac8a626
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion xcube_stac/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def search_items(
yield item


class HelperCdseCreodiasVM(Helper):
class HelperCdseCreodiansVM(Helper):

def __init__(self):
super().__init__()
Expand Down
3 changes: 0 additions & 3 deletions xcube_stac/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions xcube_stac/store_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac8a626

Please sign in to comment.