Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Apr 26, 2024
1 parent 5d36e51 commit 3365ef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/iris/tests/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1496,15 +1496,14 @@ def test_longitude_masked(self):
self.assertMaskedArrayEqual(expected_result, res_cube.data)

def test_longitude_masked_lazy(self):
self.cube.data = ma.array(
self.cube.data = da.ma.masked_array(
self.cube.data,
mask=[
[True, True, True, True],
[True, False, True, True],
[False, False, False, False],
],
)
self.cube.data = self.cube.lazy_data()
res_cube = self.cube.rolling_window("longitude", iris.analysis.MEAN, window=2)

expected_result = np.ma.array(
Expand Down

0 comments on commit 3365ef5

Please sign in to comment.