Skip to content

Commit 714c9c2

Browse files
Merge pull request #1177 from SachsLab/cboulay/1151
BlackrockRawIO - Fix #1151 indexing bug when no nsx present
2 parents 0e89241 + 707daf7 commit 714c9c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,7 @@ def _parse_header(self):
438438
# Find maximal and minimal time for each nev segment
439439
for k, (data, ev_ids) in self.nev_data.items():
440440
for i in np.unique(ev_ids):
441-
mask = [ev_ids == i]
442-
curr_data = data[mask]
441+
curr_data = data[ev_ids == i]
443442
if curr_data.size > 0:
444443
if max(curr_data['timestamp']) >= max_nev_times.get(i, 0):
445444
max_nev_times[i] = max(curr_data['timestamp'])

0 commit comments

Comments
 (0)