We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82bae91 commit a558883Copy full SHA for a558883
1 file changed
cmlreaders/readers/eeg.py
@@ -723,7 +723,7 @@ def as_timeseries(
723
rstart = convert.milliseconds_to_samples(rel_start, sample_rate)
724
rstop = convert.milliseconds_to_samples(rel_stop, sample_rate)
725
# only events within boundaries
726
- evs = ev[(ev['eegoffset'] - rstart >= 0) &
+ evs = ev[(ev['eegoffset'] - rstart >= 0) &
727
(ev['eegoffset'] + rstop <= n_samples)]
728
if len(evs) < len(ev):
729
drop_idx = ev.index.difference(evs.index).to_numpy() # event idx to drop
0 commit comments