Hello
I am new to mne python (and python itself). For reproducibility, I have decided to start using the men-bids-pipeline.
I am using MacOS Montgomery 12.2.1.
This is how I have installed mne-bids and the dependencies:
conda create --name mne --channel conda-forge mne-bids
pip install -r https://raw.githubusercontent.com/mne-tools/mne-bids-pipeline/main/requirements.txt
It is running on python 3.9.
I have customised the config.py, and it starts to run just fine using the python run.py --config=config.py --steps=preprocessing command. Then I am getting the following error:
spec.loader.exec_module(custom_cfg)
File "/Users/Franziska/Dropbox/PredictiveLanguageCoding_EEG/EEG_analysis/mne-bids-pipeline-main-3/config.py", line 2006, in <module>
spec.loader.exec_module(custom_cfg)
File "/Users/Franziska/Dropbox/PredictiveLanguageCoding_EEG/EEG_analysis/mne-bids-pipeline-main-3/config.py", line 2006, in <module>
spec.loader.exec_module(custom_cfg)
File "/Users/Franziska/Dropbox/PredictiveLanguageCoding_EEG/EEG_analysis/mne-bids-pipeline-main-3/config.py", line 2006, in <module>
spec.loader.exec_module(custom_cfg)
File "/Users/Franziska/Dropbox/PredictiveLanguageCoding_EEG/EEG_analysis/mne-bids-pipeline-main-3/config.py", line 1927, in <module>
coloredlogs.install(
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/site-packages/coloredlogs/__init__.py", line 537, in install
handler.setFormatter(formatter_type(**formatter_options))
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/site-packages/coloredlogs/__init__.py", line 1025, in __init__
kw = dict(fmt=self.colorize_format(fmt, style), datefmt=datefmt)
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/site-packages/coloredlogs/__init__.py", line 1081, in colorize_format
result.append(ansi_wrap(
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/site-packages/humanfriendly/terminal/__init__.py", line 293, in ansi_wrap
start_sequence = ansi_style(**kw)
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/site-packages/humanfriendly/terminal/__init__.py", line 236, in ansi_style
elif isinstance(color_value, numbers.Number):
File "/Users/Franziska/opt/miniconda3/envs/mne/lib/python3.10/abc.py", line 119, in __instancecheck__
return _abc_instancecheck(cls, instance)
RecursionError: maximum recursion depth exceeded in comparison
It seems it is looking for a custom_cfg file. As you know, in the relevant section in the config file it reads:
# For testing a specific dataset, create a Python file with a name of your
# liking (e.g., ``mydataset-template-config.py``), and set an environment
# variable ``MNE_BIDS_STUDY_CONFIG`` to that file
.
I donât know what I have to do here. What does âand set an environment variable MNE_BIDS_STUDY_CONFIG
to that file.â mean and how am I doing that?
Also is there a detailed documentation of how to work with the pipeline? I am wondering as I am only half way through the config file âŠ
Thanks a lot for your help. Much appreciated!
Fraenni