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 700968c commit 67494baCopy full SHA for 67494ba
code/utils/group.py
@@ -64,7 +64,10 @@ def plot_person(self):
64
durations.append(values)
65
66
df_all = pd.DataFrame(durations)
67
- df_all = df_all[~df_all["Subject"].str.startswith("sub-6")].reset_index(drop=True)
+ if not df_all.empty and "Subject" in df_all.columns:
68
+ df_all = df_all[~df_all["Subject"].str.startswith("sub-6")].reset_index(drop=True)
69
+ else:
70
+ logger.warning("No valid data found — skipping Subject filtering.")
71
72
self._plot_stacked_bar(df_all,
73
title="Normalized Average Activity Composition by Subject (All Sessions)",
0 commit comments