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)