[Mne_analysis] Conforming to Montage Deprecations

Bianca Islas biancaisla1 at gmail.com
Thu Dec 26 22:33:48 EST 2019
Search archives:

        External Email - Use Caution        

Happy Holidays MNE Team,

I am trying to conform to the new deprecation that has occurred in developer version 0.19 concerning the montage.  My input file is a Neuroscan (.cnt) file extension type and thus my script previously read `mne.io.read_raw_cnt(fname, montage=’standard_1020’, etc …)`.  However, I have migrated this to a separate command `mne.channels.make_standard_montage(kind=’standard_1020)`.  When doing this it skews my X,Y,Z locations.  For example, when I pass `print(raw.info[‘chs’])` my FP1 EEG electrode location is skewed from 

`’loc’: array([-0.0294367, 0.0839171, -0.00699, 0.          , 0.           , 0.         , 0.         , 0.         , 0.           , 0.          , 0.       , 0.      ])` 

to 

`’loc’: array([-0.20257819,  0.21764863,  0.95477283,         nan,         nan,
               nan,         nan,         nan,         nan,         nan,
               nan,         nan]).

Furthermore, when I input `print(raw.info)` the previous code output under `dig : list | 26 items (3 cardinal, 23 EEG)`  while the latter code displays NoneType in the `dig`.  While this seems like it would be a straight-forward change, it is definitely not as easy in practice.  Is there any reason that it is not reading my montage as a standard_1020 anymore?

Thank you for any assistance provided,
Bianca Islas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20191226/1be65c34/attachment.html 


More information about the Mne_analysis mailing list