Skip to content

Commit fd02687

Browse files
committed
Fix events' label dtype
1 parent df64805 commit fd02687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/alphaomegarawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def _get_event_timestamps(
10411041
effective_stop = t_stop * event["sample_rate"]
10421042
mask = (effective_start <= timestamps) & (timestamps <= effective_stop)
10431043
timestamps = timestamps[mask]
1044-
labels = np.array([s[1] for s in event["samples"]], dtype=np.ushort)
1044+
labels = np.array([s[1] for s in event["samples"]], dtype="U")
10451045
labels = labels[mask]
10461046
else:
10471047
timestamps = np.array([], dtype=np.uint32)

0 commit comments

Comments
 (0)