<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}
:root
        {}
html, page, window
        {color:#ffffff}
*:link, *:link *
        {color:#7fd7ff!important}
*:visited, *:visited *
        {color:#ffafff!important}
input[type="range"]
        {}
button, input[type="button"], input[type="color"], input[type="image"], input[type="reset"], input[type="submit"], select
        {}
select
        {padding-right:1em!important}
treechildren
        {background-color:#000000!important}
groupbox#dialogBox
        {}
html
        {color:#ffffff!important}
[bgcolor]
        {background-color:#000000!important}
[text], [color]
        {color:#ffffff!important}
.qrCode > canvas
        {border:10px white solid}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
<p>Hello,</p>
<p><br>
</p>
<p>I'm messaging because I recieved the error &nbsp;&quot;<span class="ansi-red-intense-fg ansi-bold" style="font-family:Cambria,serif"><span style="font-family:Cambria,serif">RuntimeError</span></span><span style="font-family:Cambria,serif">: Digitization points not
 in head coordinates, contact mne-python developers</span>&quot; while trying to bring up a topography plot using
</p>
<p><em>plot_projs_topomap()</em>. Some background: I have some eeg data that has already been preprocessed in eeglab which I would like to load into MNE. I managed to load just the eeg data into MNE using
</p>
<p><em>mne.io.read_epochs_eeglab()</em>. However, it seems that<em>&nbsp;read_epochs_eeglab()</em> ignores the location data stored in the eeglab EEG file structure. I assume this is becuase the function only cares about extracting the &quot;raw&quot; data from the .set file?<br>
</p>
<p><br>
</p>
<p>Below is my code which calls the data stored in the attached zip file:</p>
<p><br>
</p>
<p><span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">import os</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">import mne</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#loading eeglab data:</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">eeg = mne.io.read_epochs_eeglab('009testData.set')</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#Loading 10-20 eeg montage:</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">montage = mne.channels.make_standard_montage('standard_1020')</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#Storing digitization points&nbsp; 1-58 into the mne.io.eeglab.eeglab.EpochsEEGLAB type object:</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#NOTE: The digitization points stored in montage don't match the ones stored in the eeglab
</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data. However, I have determined that this is unrelated to the error in question.</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">eeg.info['dig'] = montage.dig[3:len(eeg.info['ch_names'])&#43;3]</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">#Attempting to plot the topography plot:</span><br style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">
<span style="font-family:&quot;Courier New&quot;,monospace; font-size:10pt">fig = eeg.plot_projs_topomap()</span><br>
</p>
<p><br>
</p>
<p>I'm pretty new to MNE and the concept of montages as a filetype confuses me. But if you have any pointers/could advise me what exactly I've done wrong I'd really appreciate it.</p>
<p><br>
</p>
<p>All the best,</p>
<p><br>
</p>
<p><br>
</p>
<p>Rhys<br>
</p>
</body>
</html>