diff --git a/openeogeotrellis/backend.py b/openeogeotrellis/backend.py index 218cd8a33..d5c5f9256 100644 --- a/openeogeotrellis/backend.py +++ b/openeogeotrellis/backend.py @@ -1000,7 +1000,6 @@ def intersects_temporally(interval) -> bool: #this is one way to determine if a time dimension is used, but it does depend on the use of item_assets and datacube extension. netcdf_with_time_dimension = len(dimensions) == 1 and "time" in dimensions.pop() - for itm in intersecting_items: band_assets = {asset_id: asset for asset_id, asset in dict(sorted(itm.get_assets().items())).items() if is_band_asset(asset)} diff --git a/tests/test_api_result.py b/tests/test_api_result.py index 523817a0c..7088f17a9 100644 --- a/tests/test_api_result.py +++ b/tests/test_api_result.py @@ -3391,7 +3391,7 @@ def test_stac_api_item_search_bbox_is_epsg_4326(self, api110): "proj:epsg": 3035, "proj:bbox": [4309000, 3014000, 4310000, 3015000], "proj:shape": [100, 100]}, - assets={"result": Asset(href=f"file:{get_test_data_file('binary/load_stac/BVL_v1/BVL_v1_2021.tif')}", + assets={"result": Asset(href=f"file://{get_test_data_file('binary/load_stac/BVL_v1/BVL_v1_2021.tif')}", extra_fields={"eo:bands": [{"name": "class"}]})})] with mock.patch("pystac.read_file", return_value=self._mock_stac_api_collection()), mock.patch(