Skip to content

Commit

Permalink
Merge pull request #148 from xylar/fix-typo-planar-horiz
Browse files Browse the repository at this point in the history
Fix typo in planar horiz viz
  • Loading branch information
cbegeman authored Nov 8, 2023
2 parents 0527fc5 + 7f8a5f2 commit e545833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polaris/viz/planar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e545833

Please sign in to comment.