You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reading coordinates (montage) from vhdr files #4471
I have encountered an issue trying to read coordinate information (i.e., montage) from brainvision vhdr files (from the 'coordinates' field). For example, something like this
raw = mne.io.read_raw_brainvision('filename.vhdr', montage=True, eog=['EOG1', 'EOG2'])
results in ImportError: cannot import name '_sphere_to_cartesian' as this function does not seem to exist in mne.transforms. Another function, _sph_to_cart, does exist, however. The expected argument structure of this function differ slightly though.
One way to solve this issue might be to modify line 438 of mne.io.brainvision from
to conform with the expected structure of arguments of _sph_to_cart. This seems to solve the issue for me at least but I don't know what your preferred solution is, e.g., if you would rather modify _sph_to_cart.
Activity
agramfort commentedon Aug 9, 2017
larsoner commentedon Apr 16, 2019
Fixed by #4531