Skip to content

Commit 603dd01

Browse files
committed
revert back to "<i4" for n_samples
1 parent 2a09df7 commit 603dd01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mne/io/cnt/cnt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _get_cnt_info(input_fname, eog, ecg, emg, misc, data_format, date_format, he
335335
# nsamples = SETUP.EventTablePos - (900 + 75 * nchannels) / (2 * nchannels)
336336
# where 2 likely refers to the data format with default 2 bytes.
337337
fid.seek(_NSAMPLES_OFFSET)
338-
n_samples = np.fromfile(fid, dtype="<u4", count=1).astype(int).item()
338+
n_samples = np.fromfile(fid, dtype="<i4", count=1).astype(int).item()
339339
n_samples_header = n_samples
340340
fid.seek(869)
341341
lowcutoff = float(np.fromfile(fid, dtype="f4", count=1).item())

0 commit comments

Comments
 (0)