Skip to content

Commit a3a86dc

Browse files
committed
fix handling of non-empty state array
1 parent e6c43cb commit a3a86dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _parse_header(self):
205205
raise ValueError(f'There is no possible labels for this event: {stream_name}')
206206

207207
# # If available, use 'states' to compute event duration
208-
if 'states' in d and d["states"]:
208+
if 'states' in d and d["states"].size:
209209
states = d["states"]
210210
timestamps = d["timestamps"]
211211
labels = d["labels"]

0 commit comments

Comments
 (0)