Skip to content

Commit

Permalink
Update weekly CI
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Dec 22, 2023
1 parent ba88b9f commit 129728a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CI/SCRIPTS_WEEKLY/test_stac_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import tempfile

import xarray as xr
from rasterio.windows import Window
from sertit import ci, s3
from tempenv import tempenv

Expand Down Expand Up @@ -45,6 +46,13 @@ def _test_core(
# Check constellation if OK
compare(prod.constellation.value, const.value, "constellation")

# Load default band
def_band = prod.get_default_band()
band = prod.load(
def_band, window=Window(col_off=0, row_off=0, width=100, height=100)
)[def_band]
assert band.shape == (1, 100, 100)

# TODO: more checks


Expand Down

0 comments on commit 129728a

Please sign in to comment.