Skip to content

Commit

Permalink
data check for soil moisture monthly timeseries plot
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVolk committed Aug 3, 2024
1 parent c4b0399 commit 62bb918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluxdataqaqc/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,8 @@ def _get_units(plt_vars, units):
v for v in variables if theta_re.match(v) and v in\
df.columns
]
if fig is not None and monthly and len(theta_vars) > 0:
if fig is not None and monthly and len(theta_vars) > 0\
and set(theta_vars).issubset(monthly_df.columns):
# same for monthly fig
tmp_df = monthly_df[theta_vars].rename(columns=rename_dict)
tmp_source = ColumnDataSource(tmp_df)
Expand Down

0 comments on commit 62bb918

Please sign in to comment.