Skip to content

Commit 993ae15

Browse files
committed
Fixes copying mask as it's modified in place by _improve_mask
1 parent c531bcf commit 993ae15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xcdat/mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _pcmdi_land_sea_mask(
248248
logger.debug("Iteration %i", i + 1)
249249

250250
improved_mask = _improve_mask(
251-
mask,
251+
mask.copy(deep=True),
252252
highres_regrid,
253253
"sftlf",
254254
surrounds,

0 commit comments

Comments
 (0)