Skip to content

Commit

Permalink
Change session_info name to be consistent with rest of codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Oct 24, 2023
1 parent 422440e commit 6862043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spikegadgets_to_nwb/convert_intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 6862043

Please sign in to comment.