Skip to content

Commit 4f082bb

Browse files
Remove mask from create_grid() output (#786)
- This variable was added for convenience to get the grid shape, but serves no other purpoes
1 parent 58dac72 commit 4f082bb

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

tests/test_regrid.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,9 +1165,6 @@ def test_create_grid_with_coords(self):
11651165

11661166
assert np.array_equal(new_grid.lat, self.lat)
11671167
assert np.array_equal(new_grid.lon, self.lon)
1168-
assert np.array_equal(
1169-
new_grid.mask, xr.DataArray(np.ones((5, 3)), dims=("lat", "lon"))
1170-
)
11711168

11721169
def test_create_grid_with_tuple_of_coords_and_no_bounds(self):
11731170
# This case happens if `create_axis` is used without creating bounds,

xcdat/regridder/grid.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,6 @@ def create_grid(
530530

531531
ds = ds.assign_coords({coords.name: coords})
532532

533-
ds["mask"] = create_mask(ds)
534-
535533
return ds
536534

537535

0 commit comments

Comments
 (0)