Skip to content
Snippets Groups Projects
Commit 3e54b7e1 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

Grid: correctly reshape mask when casting grid to unstructured

parent 1966af67
No related branches found
No related tags found
1 merge request!258Grid mask support
......@@ -144,7 +144,11 @@ class RectilinearGrid(StructuredGrid):
order=self.order,
axes_names=self.axes_names,
crs=self.crs,
mask=self.mask,
mask=(
self.mask
if self.mask is None
else self.mask.reshape(-1, order=self.order)
),
)
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment