You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: neo/rawio/openephysrawio.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -141,11 +141,10 @@ def _parse_header(self):
141
141
np.median(diff) ==RECORD_SIZE
142
142
), f"This file has a non valid data block size for channel {chan_id}, this case cannot be handled"
143
143
144
-
diff=np.diff(data_chan["timestamp"])
145
144
channel_has_corrupted_timestamps=np.any(diff<=0)
146
145
ifchannel_has_corrupted_timestamps:
147
146
# protect against corrupted timestamp in channel
148
-
raiseValueError(f"{ch_name} has corrputed timestamps, this channels need to be moved away from the folder")
147
+
raiseValueError(f"{ch_name} has timestamps with zero values or negative differences between consecutive timestamps, this file ({continuous_filename}) with corrupted timestamps needs to be moved away from the folder.")
0 commit comments