mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

Support for .hpts broken

Open haribharadwaj opened this issue 11 years ago • 4 comments

Hmm.. so since read_raw_edf started taking montage instance as input, support for .hpts is broken. channels.read_montage doesn't resolve cardinal points and non-EEG channels correctly leading to not being able to use transform=True.. Other things fail downstream too..

haribharadwaj avatar Mar 30 '15 22:03 haribharadwaj

@teonlamont @christianbrodbeck @wmvanvliet ?

agramfort avatar Mar 31 '15 07:03 agramfort

ok, currently it was transforming all channels so we can resolve it within the function by applying picks. what are some of the downstream effects or is it that not resolving the transformation leads to a downstream effect?

teonbrooks avatar Mar 31 '15 08:03 teonbrooks

@teonlamont .. I just looked through the code and it seems like the identifiers it is looking for the cardinals is lpa, rpa and nasion. The spec for hpts in the manual says "For cardinal landmarks, 1 = left auricular point, 2 = nasion, and 3 = right auricular point." I can quickly edit to look for either the string or the digit...

The downstream issues seem to be because of this too. Sorry about the alarm.

haribharadwaj avatar Mar 31 '15 14:03 haribharadwaj

Closed with PR #1918

haribharadwaj avatar Mar 31 '15 17:03 haribharadwaj