<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;"> External Email - Use Caution </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 <<a href="mailto:alexandre.gramfort@inria.fr">alexandre.gramfort@inria.fr</a>> 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'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>
<<a href="mailto:edoardo.pinzuti@gmail.com" target="_blank">edoardo.pinzuti@gmail.com</a>> wrote:<br>
><br>
> External Email - Use Caution<br>
><br>
> Dear MNE team,<br>
><br>
> 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>
><br>
> poolEpochs=mne.concatenate_epochs([epochs_tasks, epochs_base])<br>
> ValueError: selection must be shape (711,) got shape (1422,)<br>
><br>
> Thanks<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/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>