Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Oct 9, 2024
1 parent 444c607 commit 66f4374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datacube/index/postgis/_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def temporal_extent(self, product: str | Product) -> tuple[datetime.datetime, da

return result

def spatial_extent(self, product: int | str | Product, crs: CRS = CRS("EPSG:4326")) -> Geometry | None:
def spatial_extent(self, product: str | Product, crs: CRS = CRS("EPSG:4326")) -> Geometry | None:
if isinstance(product, str):
product = self._index.products.get_by_name_unsafe(product)
ids = [ds.id for ds in self._index.datasets.search(product=product.name)]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def ls8_eo3_dataset4(index, extended_eo3_metadata_type, ls8_eo3_product, eo3_ls8


@pytest.fixture
def wo_eo3_dataset(index, wo_eo3_product, eo3_wo_dataset_doc):
def wo_eo3_dataset(index, wo_eo3_product, eo3_wo_dataset_doc, ls8_eo3_dataset):
return doc_to_ds(index,
wo_eo3_product.name,
*eo3_wo_dataset_doc)
Expand Down

0 comments on commit 66f4374

Please sign in to comment.