We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b0399 commit 62bb918Copy full SHA for 62bb918
fluxdataqaqc/plot.py
@@ -1176,7 +1176,8 @@ def _get_units(plt_vars, units):
1176
v for v in variables if theta_re.match(v) and v in\
1177
df.columns
1178
]
1179
- if fig is not None and monthly and len(theta_vars) > 0:
+ if fig is not None and monthly and len(theta_vars) > 0\
1180
+ and set(theta_vars).issubset(monthly_df.columns):
1181
# same for monthly fig
1182
tmp_df = monthly_df[theta_vars].rename(columns=rename_dict)
1183
tmp_source = ColumnDataSource(tmp_df)
0 commit comments