Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed Aug 4, 2022
1 parent ebcf78d commit 5d90ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eeglabio/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def export_set(fname, data, sfreq, events, tmin, tmax, ch_names, event_id=None,
# merge annotations into events array
if annotations is not None:
annot_types = annotations[0]
annot_lat = np.array(annotations[1]) * sfreq + 1 # +1 for eeglab quirk
annot_lat = np.array(annotations[1]) * sfreq + 1 # +1 for eeglab
annot_dur = np.array(annotations[2]) * sfreq
# epoch number = sample / epoch len + 1
annot_epoch = annot_lat // data.shape[1] + 1
Expand Down

0 comments on commit 5d90ff4

Please sign in to comment.