Skip to content

Commit 2bdb54b

Browse files
not adding the df_fip to the nwb object; i think this might be what is causing OOM errors when i'm looking at 100+ sessions
1 parent 0b56c7b commit 2bdb54b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/aind_dynamic_foraging_basic_analysis/metrics/snr_kurtosis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ def estimate_snr_and_kurtosis(
172172
if not hasattr(nwb_i, "df_fip"):
173173
print("You need to compute the df_fip first")
174174
print("running `nwb.df_fip = create_df_fip(nwb,tidy=True)`")
175-
nwb_i.df_fip = nu.create_df_fip(nwb_i, tidy=True)
176-
df_fip = nwb_i.df_fip
175+
df_fip = nu.create_df_fip(nwb_i, tidy=True)
176+
else:
177+
df_fip = nwb_i.df_fip
177178
ses_idx = df_fip['ses_idx'].unique()[0]
178179
all_channels = [channel for channel in df_fip.event.unique() if
179180
not channel.startswith("FIP") and not channel.startswith("Iso")]

0 commit comments

Comments
 (0)