Skip to content

Commit 62bb918

Browse files
committed
data check for soil moisture monthly timeseries plot
1 parent c4b0399 commit 62bb918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fluxdataqaqc/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ def _get_units(plt_vars, units):
11761176
v for v in variables if theta_re.match(v) and v in\
11771177
df.columns
11781178
]
1179-
if fig is not None and monthly and len(theta_vars) > 0:
1179+
if fig is not None and monthly and len(theta_vars) > 0\
1180+
and set(theta_vars).issubset(monthly_df.columns):
11801181
# same for monthly fig
11811182
tmp_df = monthly_df[theta_vars].rename(columns=rename_dict)
11821183
tmp_source = ColumnDataSource(tmp_df)

0 commit comments

Comments
 (0)