Cannot read Nihon Kohden EEG-1200A V01.00 files (solved)

MNE version: 1.11.0

operating system: Omarchy 3.4.1 (arch variant)

import mne
from mne.io import read_raw_nihon
print(mne.__version__)
1.11.0
#%%
nh=read_raw_nihon("../data/EEG2100/FA3620PH.EEG",preload=True)
Loading FA3620PH.EEG
Found 21E file, reading channel names.
Reading header from /home/john/work/neuro/projects/client/notebooks/../data/EEG2100/FA3620PH.EEG
Found PNT file, reading metadata.
Reading 0 ... 9999  =      0.000 ...     1.000 secs...
Found LOG file, reading events.
#%%
print(nh.info)
<Info | 7 non-empty values
 bads: []
 ch_names: Fp1
 chs: 1 EEG
 custom_ref_applied: False
 highpass: 0.0 Hz
 lowpass: 5000.0 Hz
 meas_date: 2024-09-19 08:23:33 UTC
 nchan: 1
 projs: []
 sfreq: 10000.0 Hz
>
#%%
data=nh.get_data()
#%%
data.shape
(1, 10000)

The .EEG file is 10GB.

❯ xxd -s 0 -c 32 -l 128 data/EEG2100/FA3620PH.EEG
00000000: 4545 472d 3132 3030 4120 5630 312e 3030 0000 0000 0000 0000 0000 0000 0000 0000  EEG-1200A V01.00................
00000020: 4641 3336 3230 5048 2e50 4e54 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  FA3620PH.PNT....................
00000040: 3230 3234 3039 3139 3038 3233 3333 3000 0000 0000 0000 0000 0000 0000 0000 0000  202409190823330.................
00000060: 0000 0000 0000 0000 0000 0000 0000 004a 452d 3132 3041 2f31 3235 4100 0000 0000  ...............JE-120A/125A.....

Similar to Nihon Kohden EEG-1200A V01.00; SEEG data , I am trying to read a very large NK .EEG file. While the version number in the header is in the valid list, only a single channel and one second of data are loaded from the file.

I’m not sure if this PR was merged? EEG-1200A V01.00 by jacobshaw42 · Pull Request #11431 · mne-tools/mne-python · GitHub or if it would help.

I also saw mention of editing lines in mne.io.base cannnot read nihon kohden .EEG file by mne python · Issue #9462 · mne-tools/mne-python · GitHub , but the line numbers seem to be out of sync with the current source code.

I don’t have matlab, and it is uncertain if brainstorm supports this format.

EDFBrowser does not support this format.

Nihon Kohden to EDF(+) converter.

error, deviceblock has unknown signature: "EEG-1200A V01.00"

Thanks for any help!

Claude Code was able to figure this out and write a reader for these files.

Thanks!

I am experiencing the same issue. Would you mind sharing the code that resolves it?