Commit 27619e34 authored by GROUAZEL's avatar GROUAZEL

adapt / fix in case no quality flag for partition

parent e2ce206c
......@@ -194,7 +194,7 @@ def add_wsys_label(ax_legend,wsys,j,c_txt='k',x_txt = 0,fs_legend = 12,hs = 1,me
if hasattr(wsys,"qcpartition"): #wsys['qcpartition']
valtmp = wsys.qcpartition[j]
if np.ma.is_masked(valtmp):
if np.ma.is_masked(valtmp) or np.isnan(valtmp):
valtmp2 = 'masked'
else:
valtmp2 = qc_vals[valtmp]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment