<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 dir="ltr">hi Dirk,<div><br></div><div>pip install python-picard<br></div><div><br></div><div>should fix it.</div><div><br></div><div>HTH</div><div>Alex</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 3, 2019 at 5:28 PM Dirk van Moorselaar &lt;<a href="mailto:dirkvanmoorselaar@gmail.com">dirkvanmoorselaar@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p>Hi, <div><br></div><div>I have updated mne to version 19. I am now playing around with ICA and I wanted to see how the Picard method would behave on my data. However, when I try to run this method using the following commands:</div><div><br></div><div><div>ica = ICA(n_components=picks.size, method=method)</div><div># ica is fitted on epoched data (stored in self)</div><div>ica.fit(self, picks=picks, decim=decim)</div></div><div><br></div><div>I get a ModuleNotFoundError:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">~/anaconda2/envs/mne3/lib/python3.7/site-packages/mne/preprocessing/ica.py in _fit(self, data, max_pca_components, fit_type)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">    678                                             **self.fit_params)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">    679         elif self.method == &#39;picard&#39;:</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">--&gt; 680             from picard import picard</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">    681             _, W, _ = picard(data[:, sel].T, whiten=False,</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">    682                              random_state=random_state, **self.fit_params)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9);min-height:14px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:&quot;Andale Mono&quot;;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)"><span style="font-variant-ligatures:no-common-ligatures">ModuleNotFoundError: No module named &#39;picard&#39;</span></div></div><div><br></div><div>What am I doing wrong here or is something wrong with my installation?</div><div><br></div><div>Cheers,</div><div><br></div><div>Dirk</div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>