Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaHutter committed Nov 22, 2023
1 parent d32b4b0 commit a689516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import xvec
from joblib import Parallel, delayed
from openeo_pg_parser_networkx.pg_schema import TemporalInterval, TemporalIntervals

from openeo_processes_dask.process_implementations.data_model import (
RasterCube,
VectorCube,
Expand Down
6 changes: 4 additions & 2 deletions tests/test_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import numpy as np
import pytest
from openeo_pg_parser_networkx.pg_schema import ParameterReference, TemporalInterval

from openeo_processes_dask.process_implementations.cubes.aggregate import (
aggregate_spatial,
aggregate_temporal_period,
)
from openeo_processes_dask.process_implementations.cubes.reduce import reduce_dimension
from openeo_processes_dask.process_implementations.math import mean

from tests.general_checks import assert_numpy_equals_dask_numpy, general_output_checks
from tests.mockdata import create_fake_rastercube

Expand Down Expand Up @@ -89,7 +89,9 @@ def test_aggregate_temporal_period_numpy_equals_dask(
)

func = partial(aggregate_temporal_period, reducer=reducer, period="hour")
assert_numpy_equals_dask_numpy(numpy_cube=numpy_cube, dask_cube=dask_cube, func=func)
assert_numpy_equals_dask_numpy(
numpy_cube=numpy_cube, dask_cube=dask_cube, func=func
)


@pytest.mark.parametrize("size", [(30, 30, 30, 3)])
Expand Down

0 comments on commit a689516

Please sign in to comment.