Skip to content

Commit

Permalink
spaces in doc-strings removed
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed May 8, 2024
1 parent a7ef519 commit 81bfdfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions xcube_stac/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
# open_data(), which will be used to open the hrefs

def get_open_data_params_schema(self, data_id: str = None) -> JsonObjectSchema:
""" Get the JSON schema for instantiating a new data store.
"""Get the JSON schema for instantiating a new data store.
Returns:
The JSON schema for the data store's parameters.
Expand All @@ -84,7 +84,7 @@ def get_open_data_params_schema(self, data_id: str = None) -> JsonObjectSchema:
def get_item_collection(
self, **open_params
) -> Tuple[ItemCollection, List[str]]:
""" Collects all items within the given STAC catalog
"""Collects all items within the given STAC catalog
using the supplied *open_params*.
Returns:
Expand All @@ -109,7 +109,7 @@ def get_item_collection(
return items, item_data_ids

def get_item_data_id(self, item: Item) -> str:
""" Generates the data ID of an item, which follows the structure:
"""Generates the data ID of an item, which follows the structure:
`collection_id_0/../collection_id_n/item_id`
Expand All @@ -128,7 +128,7 @@ def get_item_data_id(self, item: Item) -> str:
return self._data_id_delimiter.join(id_parts)

def get_item_data_ids(self, items: Iterable[Item]) -> Iterator[str]:
""" Generates the data ID of an item collection,
"""Generates the data ID of an item collection,
which follows the structure:
`collection_id_0/../collection_id_n/item_id`
Expand All @@ -143,7 +143,7 @@ def get_item_data_ids(self, items: Iterable[Item]) -> Iterator[str]:
yield self.get_item_data_id(item)

def list_item_data_ids(self, items: Iterable[Item]) -> List[str]:
""" Generates a list of data IDs for a given item collection,
"""Generates a list of data IDs for a given item collection,
which follows the structure:
`collection_id_0/../collection_id_n/item_id`
Expand Down Expand Up @@ -180,7 +180,7 @@ def _get_items_nonsearchable_catalog(
recursive: bool = True,
**open_params
) -> Iterator[Tuple[Item, str]]:
""" Get the items for a catalog of the catalog, which is not
"""Get the items for a catalog of the catalog, which is not
conform with the 'ITEM_SEARCH' specifications.
Args:
Expand Down Expand Up @@ -230,7 +230,7 @@ def _get_items_nonsearchable_catalog(
yield item

def _assert_datetime(self, item: Item, **open_params) -> bool:
""" Assert if the datetime or datetime range of an item fits to the
"""Assert if the datetime or datetime range of an item fits to the
'time_range' given by *open_params*.
Args:
Expand Down Expand Up @@ -267,7 +267,7 @@ def _assert_datetime(self, item: Item, **open_params) -> bool:
return True

def _assert_bbox_intersect(self, item: Item, **open_params) -> bool:
""" Checks if two bounding boxes intersect.
"""Checks if two bounding boxes intersect.
Args:
item: item/feature
Expand Down
2 changes: 1 addition & 1 deletion xcube_stac/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_data_types_for_data(self, data_id: str) -> Tuple[str, ...]:
def get_item_collection(
self, **open_params
) -> Tuple[ItemCollection, List[str]]:
""" Collects all items within the given STAC catalog
"""Collects all items within the given STAC catalog
using the supplied *open_params*.
Returns:
Expand Down

0 comments on commit 81bfdfa

Please sign in to comment.