Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVerelst committed Jan 16, 2024
1 parent be96124 commit a3d2012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openeo_processes_dask/process_implementations/cubes/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from openeo_processes_dask.process_implementations.data_model import RasterCube
from openeo_processes_dask.process_implementations.exceptions import (
DimensionNotAvailable,
KernelDimensionsUneven
KernelDimensionsUneven,
)

__all__ = ["apply", "apply_dimension", "apply_kernel"]
Expand Down Expand Up @@ -99,7 +99,7 @@ def apply_kernel(
raise KernelDimensionsUneven(

Check warning on line 99 in openeo_processes_dask/process_implementations/cubes/apply.py

View check run for this annotation

Codecov / codecov/patch

openeo_processes_dask/process_implementations/cubes/apply.py#L99

Added line #L99 was not covered by tests
"Each dimension of the kernel must have an uneven number of elements."
)

def convolve(data, kernel, mode="constant", cval=0, fill_value=0):
dims = ("y", "x")
convolved = lambda data: scipy.ndimage.convolve(
Expand Down
3 changes: 2 additions & 1 deletion openeo_processes_dask/process_implementations/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ class DimensionMismatch(OpenEOException):
class LabelMismatch(OpenEOException):
pass


class KernelDimensionsUneven(OpenEOException):
pass
pass

0 comments on commit a3d2012

Please sign in to comment.