Skip to content

Commit

Permalink
get rid of ImageCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Mar 24, 2023
1 parent 0036f7f commit c85ceeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cloudmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import scipy.signal

from openeo import Connection, ImageCollection
from openeo import Connection, DataCube

_log = logging.getLogger(__name__)

Expand All @@ -17,7 +17,7 @@ def makekernel(size: int) -> np.ndarray:
return kernel


def _add_band_dimension_workaround(cube: ImageCollection) -> ImageCollection:
def _add_band_dimension_workaround(cube: DataCube) -> DataCube:
# TODO: avoid "add_dimension" workaround #EP-3402 #EP-3404
_log.warning("Doing 'add_dimension' workaround")
return cube.add_dimension("bands", "mask", type="bands").band("mask")
Expand Down

0 comments on commit c85ceeb

Please sign in to comment.