diff --git a/mne/io/cnt/cnt.py b/mne/io/cnt/cnt.py index c4d48740144..6ad09b267fd 100644 --- a/mne/io/cnt/cnt.py +++ b/mne/io/cnt/cnt.py @@ -465,7 +465,7 @@ def _get_cnt_info( sfreq = np.fromfile(fid, dtype="= 0] @@ -559,7 +559,7 @@ def _get_cnt_info( baselines.append(np.fromfile(fid, dtype="i2", count=1).item()) fid.seek(data_offset + 75 * ch_idx + 59) sensitivity = np.fromfile(fid, dtype="f4", count=1).item() - print(f'sensitivity: {sensitivity}') + print(f"sensitivity: {sensitivity}") fid.seek(data_offset + 75 * ch_idx + 71) cal = np.fromfile(fid, dtype="f4", count=1).item() if mode == "evoked": @@ -882,7 +882,6 @@ def __init__( header="auto", verbose=None, ): - _check_option("date_format", date_format, ["mm/dd/yy", "dd/mm/yy"]) if date_format == "dd/mm/yy": _date_format = "%d/%m/%y %H:%M:%S" @@ -919,9 +918,7 @@ def __init__( (events is None and event_id is None) or (events is not None and event_id is not None) ): - raise ValueError( - "Both `events` and `event_id` must be " - "None or not None") + raise ValueError("Both `events` and `event_id` must be " "None or not None") assert data.shape == ( self._raw_extras[0]["n_epochs"], @@ -988,7 +985,8 @@ def _read_cnt_epochs_data(self): # short Reserved; /* not used */ f.seek(i) epoch_header = np.fromfile( - f, dtype=np.dtype('