From 632267e588a3e3c712ac888329e7550a8e7bf4fc Mon Sep 17 00:00:00 2001 From: seqasim Date: Mon, 18 May 2026 10:47:58 -0400 Subject: [PATCH] fix ev_starts for IED/artifact detection --- LFPAnalysis/lfp_preprocess_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFPAnalysis/lfp_preprocess_utils.py b/LFPAnalysis/lfp_preprocess_utils.py index f060110..e3648c8 100644 --- a/LFPAnalysis/lfp_preprocess_utils.py +++ b/LFPAnalysis/lfp_preprocess_utils.py @@ -2026,7 +2026,7 @@ def make_epochs(load_path=None, slope=None, offset=None, behav_name=None, behav_ beh_ts = [x for x in beh_ts if ~np.isnan(x)] # Bin these times into the epoched bins - ev_starts = [x - ev_start_s for x in beh_ts] + ev_starts = [x + ev_start_s for x in beh_ts] ev_ends = [x + ev_end_s for x in beh_ts] IED_df = _bin_channelwise_times_into_behav_evs(IED_sec_dict, ev_starts, ev_ends)