-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"arrays used as indices must be of integer (or boolean) type" #126
Comments
Can you use the version on Also, the |
Indeed a couple of missing error message, can you share the full traceback? Found the lines here mne-icalabel/mne_icalabel/iclabel/utils.py Line 245 in 1c0418b
Also, could you save the ICA decomposition with |
Arf, the traceback is incomplete because it's a Jupyter notebook, sneaky |
Sorry, I don't know what |
I'm not sure if I can upload raw files, because these are from confidential patient data. |
Unlucky, as it's difficult to debug if we can not reproduce the error. If you don't mind, I would like to give you a couple of short code snippets that I'd like you to run and return the output here to help us debug the issue further without providing us with the RAW/ICA files. Would that be OK with you? |
The development version has been installed, and the same bug appeared.
OK, I can debug locally through your code. |
Thanks for the help, yes you could debug using VSCode, but if you are not familiar with breakpoints and debug mode, there is no gain compare to Jupyter. In the following part, First let's get some information on your
Paste in this thread the printed information:
Paste in this thread the printed information:
Paste in this thread the figure returned by:
Return the file
Paste in this thread the printed information:
Return the file
That should be enough for debug and for me to reproduce the error locally. |
Sorry for not getting back to you for such a long time. |
I'm getting this error. Test file is attached, and the test script is here:
|
Thanks for the reproducible example, it makes debugging way simpler. The error occurs because of a mne-icalabel/mne_icalabel/iclabel/_utils.py Lines 210 to 211 in a7b4c84
This is due to
I'll think about it and open a PR to close this issue. |
Okay great, thanks! So in general, I should try to set the montage without ignoring anything? It looks like you drop the mastoids before ICA. Any particular reason? I tried it with and without that and it works either way. |
Exactly, in this case to do so, one channel had to be renamed to match the name in the montage. |
Describe the bug
When I was running "label_components", an error occurred:
"arrays used as indices must be of integer (or boolean) type"
Steps to reproduce
IDE: jupyter notebook
python 3.9.12
mne 1.3.1
mne-iclabel 0.4
Actual results
The text was updated successfully, but these errors were encountered: