Skip to content

Commit 33b675c

Browse files
Fix uxgrid check for Uxarray data array
1 parent 2d24d4f commit 33b675c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plotting_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,10 @@ def make_polar_plot(wks, case_nickname, base_nickname,
785785
pct = pctchange
786786

787787
#check if pct has NaN's or Inf values and if so set them to 0 to prevent plotting errors
788-
pct_grid = pct.uxgrid
789788
pct_0 = pct.where(np.isfinite(pct), np.nan)
790789
pct_0 = pct_0.fillna(0.0)
791790
if isinstance(pct, ux.UxDataArray):
791+
pct_grid = pct.uxgrid
792792
pct = ux.UxDataArray(pct_0,uxgrid=pct_grid)
793793
else:
794794
pct = pct_0

0 commit comments

Comments
 (0)