Skip to content

Commit

Permalink
transition several tests to eo3 data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Dec 11, 2024
1 parent 795d97e commit 3bff578
Show file tree
Hide file tree
Showing 23 changed files with 2,999 additions and 844 deletions.
7 changes: 1 addition & 6 deletions cubedash/index/postgis/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from datacube.drivers.postgis._schema import ( # isort: skip
Dataset as ODC_DATASET, # noqa: N814
DatasetLocation,
Product as ODC_PRODUCT, # noqa: N814
)
from datacube.index import Index
Expand Down Expand Up @@ -527,12 +526,8 @@ def all_products_location_samples(
subquery = (
select(
literal(product.name).label("name"),
func.array_agg(DatasetLocation.uri).label("uris"),
func.array_agg(ODC_DATASET.uri).label("uris"),
)
# can we make use of DatasetLocation's dataset relationship to change this?
# not entirely certain of how it works
.select_from(DatasetLocation)
.join(ODC_DATASET)
.where(
and_(
ODC_DATASET.product_ref == product.id,
Expand Down
Loading

0 comments on commit 3bff578

Please sign in to comment.