<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">but here I crop the data with the same length and the 711 refers to the number of events (both task and baseline have 711).<div><br></div><div>I can not compute on the original epochs because the baseline is not directly adjacent to the task cue, including more time points will have an effect on the csd estimation</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 2 nov 2020 alle ore 21:32 Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>&gt; ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">        External Email - Use Caution        <br>
<br>
hi,<br>
<br>
you cannot concatenate epochs which do not have the same number of time samples.<br>
<br>
you could compute the CSD for each and average them but it may not work if the<br>
Fourier resolutions differ.<br>
<br>
Therefore I am not sure it&#39;s an ideal solution. Why not computing the<br>
CDS on the original epochs<br>
that contain the baseline?<br>
<br>
A<br>
<br>
On Mon, Nov 2, 2020 at 1:49 PM Edoardo Pinzuti<br>
&lt;<a href="mailto:edoardo.pinzuti@gmail.com" target="_blank">edoardo.pinzuti@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;         External Email - Use Caution<br>
&gt;<br>
&gt; Dear MNE team,<br>
&gt;<br>
&gt; I need to compute the csd on pool conditions and baseline together. So I cropped the task segment  and baseline period and tried to create a new epoch to pass it to the csd estimation but i get the error<br>
&gt;<br>
&gt; poolEpochs=mne.concatenate_epochs([epochs_tasks, epochs_base])<br>
&gt; ValueError: selection must be shape (711,) got shape (1422,)<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://secure-web.cisco.com/16qaYZetlslicw7V4hwqFUQANFZyDgOLgJfEptAibNdFra79Q-4tqIH-FptWEbM0QLdJ9jtxXyXZXrBuSkNJ1Ye7kP1rrzVaZtlhM19R4FN2xT8ABp4ipCHQM-dKhJu0q8Jw_ALujU5h8Vte6U5lAOrf9q1_datkjOGKnb57n7eWfsW1yzUHQsxzTsbtDOysbLIq3zqLraofcfLnQsAcGcQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank">https://secure-web.cisco.com/16qaYZetlslicw7V4hwqFUQANFZyDgOLgJfEptAibNdFra79Q-4tqIH-FptWEbM0QLdJ9jtxXyXZXrBuSkNJ1Ye7kP1rrzVaZtlhM19R4FN2xT8ABp4ipCHQM-dKhJu0q8Jw_ALujU5h8Vte6U5lAOrf9q1_datkjOGKnb57n7eWfsW1yzUHQsxzTsbtDOysbLIq3zqLraofcfLnQsAcGcQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis</a><br>
<br>
_______________________________________________<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://secure-web.cisco.com/1Zhf5RV5WK4jpvymU16X8D5d-SLKKoTnXWfNj5pIE7E1MDddtbcM0p57vU7YKpF5ocNTi7LqaBD_X4_eLr-h1h5_9AceArUT-48FY6o_bhaH9OCGyuEDNCQQ83fjQVTTjOaPHJmPHxBNWulYJQCoIqDloMkoji9iWCLYN5liDyKQEq5NAxwA-SHsHGxZyfqMnOnl4T0cjMnaDZ7XC5tqq_Q/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</blockquote></div>