error reading curry file

  • MNE version: 1.9.0
  • operating system: Windows 11

I tried to read an EEG sample exported from Curry (not sure about the version).
There are 3 kinds of files: .cdt, .ceo, .dpo.
I tried with the following python code:

import mne

fname = "./WJTB_033/20250605033XHYA.cdt"

raw = mne.io.read_raw_curry(fname)

print(raw)

But it shows the error:

Traceback (most recent call last):
  File "d:\projects\test\test.py", line 5, in <module>
    raw = mne.io.read_raw_curry(fname)
  File "<decorator-gen-205>", line 12, in read_raw_curry
  File "D:\projects\test\.venv\lib\site-packages\mne\io\curry\curry.py", line 563, in read_raw_curry
    return RawCurry(fname, preload, verbose)
  File "<decorator-gen-206>", line 12, in __init__
  File "D:\projects\test\.venv\lib\site-packages\mne\io\curry\curry.py", line 585, in __init__
    curry_paths = _get_curry_file_structure(
  File "D:\projects\test\.venv\lib\site-packages\mne\io\curry\curry.py", line 103, in _get_curry_file_structure
    raise FileNotFoundError(_msg.format(np.unique(missing), fname))
FileNotFoundError: The following required files cannot be found: ['info' 'labels'].
Please make sure all required files are located in the same directory as D:\projects\test\WJTB_033\20250605033XHYA.cdt.hpi.

I don’t know where to find the .hpi file. My colleague is in charge of the exporting of the data. And he said there is no .hpi exported.

I don’t think we support loading all types of Curry data. It could be that the cdt/ceo/dpo combination is currently unsupported? In which case it would be nice if someone could spare some time to implement this. There seems to be an EEGLAB extention to read these files: GitHub - mattpontifex/loadcurry: EEGLAB extension to import Neuroscan Curry 6, 7, 8, and 9 data files
As a workaround, you could try loading it with EEGLAB and saving it as a .set file and open that in MNE-Python.

1 Like

Thank you. I managed to load it with EEGLAB and exported the .set file.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

FWIW, we now maintain GitHub - mne-tools/curry-python-reader: CURRY Reader For Python which is a fork of neuroscan’s own Python reader code (they didn’t want to deal with packaging & distribution, and agreed to let us do it). Soon, that will be the new backend for read_raw_curry (see [draft] new reader for curry files, using curry-python-reader code by dominikwelke · Pull Request #13176 · mne-tools/mne-python · GitHub) and after that hopefully it will “just work”.

1 Like