Skip to content

Commit 94612a3

Browse files
committed
Suppress uneccessary xgcm DeprecationWarning for Axis which we don't use
1 parent 65a5b4d commit 94612a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_postprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def test_include_projection_coordinates_with_xgcm(sample_dataset):
7979
from xgcm import Grid
8080

8181
dataset = xwrf.postprocess._include_projection_coordinates(sample_dataset)
82-
grid = Grid(dataset)
82+
with pytest.warns(DeprecationWarning):
83+
grid = Grid(dataset, periodic=False)
8384

8485
assert grid.axes['Y'].coords['center'] == 'south_north'
8586
assert grid.axes['Y'].coords['outer'] == 'south_north_stag'

0 commit comments

Comments
 (0)