Greetings,
I am working with MEG data (Elekta Neuromag). Accordingly, I would like to use the Maxwell Filter process in Brainstorm (I am on a Mac).
I followed the instructions here (https://neuroimage.usc.edu/brainstorm/MnePython). This included downloading CPython (3.12) and updating the Python executable path within Brainstorm (/Library/Frameworks/Python.framework/Versions/3.12/bin/python3).
I also followed this (https://www.mathworks.com/help/matlab/matlab_external/install-supported-python-implementation.html). I also checked the PythonEnvironment and I think everything looks okay:
Version: "3.12"
Executable: "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
Library: "/Library/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib"
Home: "/Library/Frameworks/Python.framework/Versions/3.12"
Status: Loaded
ExecutionMode: InProcess
ProcessID: "5987"
ProcessName: "MATLAB"
Using the GUI, I select my Raw MEG file and attempt to apply the Maxwell Filter function, and I come across this error:
BST> Python 3.12 executable: /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
** Error: [process_mne_maxwell] Pre-process > MNE-Python: maxwell_filter (SSS/tSSS)
** Line 44: Unable to resolve the name 'py.mne.io.constants.FIFF'.
**
** Call stack:
** >out_mne_channel.m at 44
** >out_mne_data.m at 167
** >process_mne_maxwell_py.m>Run at 121
** >process_mne_maxwell_py.m at 24
** >process_mne_maxwell.m>Run at 134
** >process_mne_maxwell.m at 27
** >bst_process.m>Run at 203
** >bst_process.m at 38
** >panel_process1.m>RunProcess at 138
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 781
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_CallbackProcessRun_Callback) at 301
**
*@rawHBM0001_Visit02_MEG_ER_raw
** File: HBM0001/@rawHBM0001_Visit02_MEG_ER_raw_(2)high/data_0raw_HBM0001_Visit02_MEG_ER_raw(2)_high.mat
**
Given the error, I even tried reviewing this (https://www.mathworks.com/help/matlab/matlab_external/undefined-variable-py-or-function-py-command.html) but was not able to solve this issue.
I was hoping for some help here for fixing this issue - any suggestions?
Thank you,
Paul