From 7f8a5f26d7b85394e597fd9b10db0df9e7fb57f0 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 8 Nov 2023 14:04:49 +0100 Subject: [PATCH] Fix typo in planar horiz viz --- polaris/viz/planar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polaris/viz/planar.py b/polaris/viz/planar.py index fef04eda2..86a05212b 100644 --- a/polaris/viz/planar.py +++ b/polaris/viz/planar.py @@ -139,7 +139,7 @@ def plot_horiz_field(ds, ds_mesh, field_name, out_file_name=None, # noqa: C901 'from a previous call to plot_horiz_field()') else: if cell_mask is None: - cell_mask = np.ones_like(field, type='bool') + cell_mask = np.ones_like(field, dtype='bool') if 'nCells' in field.dims: patch_mask = cell_mask patches, patch_mask = _compute_cell_patches(ds_mesh, patch_mask)