From 68620437e0fd09367cd65b4ab993526d9085ac56 Mon Sep 17 00:00:00 2001 From: Sam Bray Date: Tue, 24 Oct 2023 09:27:29 -0700 Subject: [PATCH] Change session_info name to be consistent with rest of codebase --- src/spikegadgets_to_nwb/convert_intervals.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spikegadgets_to_nwb/convert_intervals.py b/src/spikegadgets_to_nwb/convert_intervals.py index 80cf79e..e76843a 100644 --- a/src/spikegadgets_to_nwb/convert_intervals.py +++ b/src/spikegadgets_to_nwb/convert_intervals.py @@ -14,7 +14,7 @@ def add_epochs( nwbfile: NWBFile, - session_info: pd.DataFrame, + session_df: pd.DataFrame, neo_io: List[SpikeGadgetsRawIO], ): """add epochs to nwbfile @@ -33,9 +33,9 @@ def add_epochs( neo_io iterators for each rec file. Contains time information """ logger = logging.getLogger("convert") - for epoch in set(session_info.epoch): - rec_file_list = session_info[ - (session_info.epoch == epoch) & (session_info.file_extension == ".rec") + for epoch in set(session_df.epoch): + rec_file_list = session_df[ + (session_df.epoch == epoch) & (session_df.file_extension == ".rec") ] if len(rec_file_list) == 0: logger.info(f"no rec files for epoch {epoch}, No epoch interval created")