-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
BUG: fix elp montage rotation #3755
Conversation
Not sure what is going on. |
I agree that the fix makes the plots look correct but the original equations seem correct. do you know what's going on here? is the |
@jona-sassenhagen can you check with |
FYI I've seen this type of rotations using eeglab .set files cc @jmontoyam |
yeah, the fix doesn't look correct to me. Where did you get this |
I've seen this types of rotations when converting eeglab files to fieldtrip ( |
I bet it's a bug in the file conversion but not in MNE-python no?
|
The error occurs with multiple Brainvision files and .elp files. These specific files gave correct results with previous versions of MNE. I will try to find what version is to blame. |
I can't really pinpoint the error because of the error introduced in #3613 and fixed in #3690, because the error specifically affects .elp reading. It is possible I introduced this specific error in my fix in #3690. The last commit before #3613 works (2fa35d4). This also indicates IMO that the test modified in #3690 may be insufficient ... as it relies too much on shapes rather than values of the returned arrays. @Eric89GXL can you indeed take a look? #3613 is very long and I'm really bad with transforms ... |
With .elp channel locations, without this patch:
with this patch:
Possibly related to #3613 and/or #3690 ?
@Eric89GXL can you check? I'm really not sure.