<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;} --></style>
</head>
<body dir="ltr"><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>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear MNE community,</p>
<p><br>
</p>
<p>When trying to compute psd over epochs (with mne.minimum_norm.compute_source_psd_epochs) using eLORETA method, I have the following error :</p>
<p></p>
<div><span style="color: rgb(255, 0, 0);">psd *= noise_norm ** 2</span><br>
<span style="color: rgb(255, 0, 0);">TypeError: unsupported operand type(s) for ** or pow(): 'NoneType' and 'int'</span></div>
<p>Coming from that line:<br>
</p>
<p></p>
<p><a href="https://github.com/mne-tools/mne-python/blob/361fa5fde83c192f705b9a0dd792858237c4b0b1/mne/minimum_norm/time_frequency.py#L676" class="OWAAutoLink" id="LPlnk258470" previewremoved="true">https://github.com/mne-tools/mne-python/blob/361fa5fde83c192f705b9a0dd792858237c4b0b1/mne/minimum_norm/time_frequency.py#L676</a></p>
<div><br>
</div>
<div>I believe this is because noise_norm is set to None for MNE and eLORETA methods in:<br>
</div>
<div><a href="https://github.com/mne-tools/mne-python/blob/1639ab47dd41a73e9e95962e766c80c102cc70f1/mne/minimum_norm/inverse.py#L673" class="OWAAutoLink" id="LPlnk962344" previewremoved="true">https://github.com/mne-tools/mne-python/blob/1639ab47dd41a73e9e95962e766c80c102cc70f1/mne/minimum_norm/inverse.py#L673</a></div>
<div>Does anyone has the same issue?</div>
<div>Thanks in advance.</div>
<div>Fleur<br>
</div>
</div>
</body>
</html>