Skip to content

Commit

Permalink
Restored usage of numpy in _mask_with_shp (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbenke authored Sep 28, 2023
1 parent e296491 commit 6900168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esmvalcore/preprocessor/_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ def _mask_with_shp(cube, shapefilename, region_indices=None):
if region_indices:
regions = [regions[idx] for idx in region_indices]

# Create a mask for the data (np->da)
mask = da.zeros(cube.shape, dtype=bool)
# Create a mask for the data
mask = np.zeros(cube.shape, dtype=bool)

# Create a set of x,y points from the cube
# 1D regular grids
Expand Down

0 comments on commit 6900168

Please sign in to comment.