|
@@ -82,6 +82,7 @@ def preprocessing(raw, reref_method='monopolar'):
|
|
|
annotation_onset, annotation_offset = raw.annotations.onset[0], raw.annotations.onset[-1]
|
|
|
tmin, tmax = max(annotation_onset - 5., raw.times[0]), min(annotation_offset + 5, raw.times[-1])
|
|
|
|
|
|
+
|
|
|
new_annotations = mne.Annotations(onset=raw.annotations.onset - tmin,
|
|
|
duration=raw.annotations.duration,
|
|
|
description=raw.annotations.description)
|