File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,16 @@ def get_epochs(
71
71
72
72
if l_freq is not None or h_freq is not None :
73
73
logging .warning ("Frequency filter: %s - %s Hz" , l_freq , h_freq )
74
- raw = raw .copy (). filter (l_freq = l_freq , h_freq = h_freq )
74
+ raw = raw .filter (l_freq = l_freq , h_freq = h_freq )
75
75
elif decim > 1 :
76
76
s_freq = raw .info ["sfreq" ]
77
77
h_freq = s_freq / decim / 2
78
78
logging .warning (
79
79
"Frequency filter for antialiasing: %s from %s Hz" , h_freq , s_freq
80
80
)
81
- raw = raw .copy (). filter (l_freq = None , h_freq = h_freq )
81
+ raw = raw .filter (l_freq = None , h_freq = h_freq )
82
82
83
- raw_phones = raw .copy (). set_annotations (annotations [label ])
83
+ raw_phones = raw .set_annotations (annotations [label ])
84
84
phone_events , phone_event_id = mne .events_from_annotations (raw_phones )
85
85
86
86
if selected_phones is not None :
You can’t perform that action at this time.
0 commit comments