You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openeo/rest/datacube.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -450,12 +450,12 @@ def load_stac(
450
450
# Ideal case: bands requested by user correspond with bands extracted from metadata.
451
451
metadata=metadata.filter_bands(band_names=bands)
452
452
else:
453
-
metadata=metadata.ensure_band_dimension(
453
+
metadata=metadata._ensure_band_dimension(
454
454
bands=bands,
455
455
warning=f"The specified bands {bands} in `load_stac` are not a subset of the bands {metadata.band_dimension.band_names} found in the STAC metadata (unknown bands: {unknown_bands}). Working with specified bands as is.",
456
456
)
457
457
else:
458
-
metadata=metadata.ensure_band_dimension(
458
+
metadata=metadata._ensure_band_dimension(
459
459
name="bands",
460
460
bands=bands,
461
461
warning=f"Bands {bands} were specified in `load_stac`, but no band dimension was detected in the STAC metadata. Working with band dimension and specified bands.",
0 commit comments