diff --git a/wetb/prepost/dlcplots.py b/wetb/prepost/dlcplots.py index 4c68943428c156a456b36c717b9dc3cea2683bdd..97cf0bf8ad8273192bcba61368fd1e8f4c138e2f 100644 --- a/wetb/prepost/dlcplots.py +++ b/wetb/prepost/dlcplots.py @@ -502,7 +502,9 @@ def plot_dlc_stats(df_stats, plot_chans, fig_dir_base, labels=None, # when only one of the channels was present, but the set is still # complete. # FIXME: what if both channels are present? - if len(ch_names) > 1 and (lens[0] < 1) or (lens[1] < 1): + if len(ch_names) > 1 and (lens[0] < 1): + continue + elif len(ch_names) > 1 and len(lens)==2 and lens[1] < 1: continue print('start plotting: %s %s' % (str(dlc_name).ljust(7), ch_dscr))