alexenge / hu-neuro-pipeline

Single trial EEG pipeline at the Abdel Rahman Lab for Neurocognitive Psychology, Humboldt-Universität zu Berlin
https://hu-neuro-pipeline.readthedocs.io
MIT License
14 stars 3 forks source link

Importing the pipeline errors with MNE version 1.6.0 #153

Closed alexenge closed 8 months ago

alexenge commented 8 months ago

Due to MNE having removed from mne.io._read_raw. readers in favor of mne.io._read_raw. get_supported. We've used this to get the possible EEG file extensions when parsing the raw_files directory.

The full error:

Traceback (most recent call last):
  File "/Users/alexander/mambaforge/envs/hu-neuro-pipeline-docs/lib/python3.11/site-packages/sphinx/config.py", line 332, in eval_config_file
    exec(code, namespace)
  File "/Users/alexander/Code/hu-neuro-pipeline/doc/source/conf.py", line 13, in <module>
    import pipeline
  File "/Users/alexander/Code/hu-neuro-pipeline/pipeline/__init__.py", line 8, in <module>
    from .group import group_pipeline
  File "/Users/alexander/Code/hu-neuro-pipeline/pipeline/group.py", line 8, in <module>
    from .io import (besa_extensions, convert_participant_input, eeg_extensions,
  File "/Users/alexander/Code/hu-neuro-pipeline/pipeline/io.py", line 13, in <module>
    from mne.io._read_raw import readers
ImportError: cannot import name 'readers' from 'mne.io._read_raw' (/Users/alexander/mambaforge/envs/hu-neuro-pipeline-docs/lib/python3.11/site-packages/mne/io/_read_raw.py)