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

info: check grids not None before mask checking

parent 0c9e4a9b
No related branches found
No related tags found
1 merge request!258Grid mask support
Pipeline #181357 passed with stages
in 5 minutes and 6 seconds
......@@ -658,7 +658,11 @@ class Info:
if self.grid is not None and not self.grid.compatible_with(incoming.grid):
if not (ignore_none and incoming.grid is None):
fail_info["grid"] = (incoming.grid, self.grid)
if not check_mask_equal(self.grid, incoming.grid):
if (
incoming.grid is not None
and self.grid is not None
and not check_mask_equal(self.grid, incoming.grid)
):
in_mask = (
np.sum(incoming.grid.mask)
if incoming.grid.mask is not None
......
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