Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Wales committed Sep 23, 2020
1 parent 6d40c02 commit 30d6b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test:
- cdo
- esmf
- hdf5
- nco
files:
- setup.cfg
- test
Expand Down
1 change: 1 addition & 0 deletions src/climtas/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def atleastn(da: xarray.DataArray, n: int, dim: str = "time") -> xarray.DataArra
"""

def atleastn_helper(array, axis, n):
axis = axis[0]
count = numpy.zeros_like(numpy.take(array, 0, axis=axis), dtype="i4")
mask = numpy.empty_like(numpy.take(array, 0, axis=axis), dtype="bool")
mask = True
Expand Down
5 changes: 1 addition & 4 deletions test/test_regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ def test_esmf_generate_weights():

@pytest.mark.parametrize(
"weight_gen,weight_args",
[
(esmf_generate_weights, {}),
(esmf_generate_weights, {"method": "patch"}),
],
[(esmf_generate_weights, {}), (esmf_generate_weights, {"method": "patch"})],
)
def test_nco(tmpdir, weight_gen, weight_args):
alats = 10
Expand Down

0 comments on commit 30d6b9e

Please sign in to comment.