<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0">Thank you for your suggestion.&nbsp;</p>
<p style="margin-top:0;margin-bottom:0">However,&nbsp;</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>Code:&nbsp;epochs = mne.Epochs(eeg_channels, events=events, event_id=event_id, tmin=-0.2, tmax=0.5, proj=True, baseline=(None, 0), preload=True)</div>
<div>X=epochs['aud_l', 'aud_r', 'vis_l', 'vis_r', 'smiley', 'button'].get_data()</div>
<div>print(X.shape)</div>
Output:&nbsp;
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;">320 matching events found
3 projection items activated
Loading data for 320 events and 421 original time points ...
0 bad epochs dropped
(320L, 60L, 421L)</pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><br></pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;">Then i have applied 3D array 'X' to:  <span>mne.time_frequency.csd_array(X, sfreq, mode='multitaper', fmin=0, fmax=35.0, fsum=False, n_fft=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, verbose=None)</span></pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><br></pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;">But still getting the following errors: <pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><span class="ansi-red-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 43, 49); font-weight: bold;"><br></span></pre><pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><span class="ansi-red-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 43, 49); font-weight: bold;">ValueError</span>                                Traceback (most recent call last)
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">&lt;ipython-input-177-d7b62b6f3fe7&gt;</span> in <span class="ansi-cyan-fg" style="box-sizing: border-box; color: rgb(96, 198, 200);">&lt;module&gt;</span><span class="ansi-blue-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 101, 202); font-weight: bold;">()</span>
<span class="ansi-green-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 116, 39); font-weight: bold;">----&gt; 1</span><span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;"> </span>mne<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">.</span>time_frequency<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">.</span>csd_array<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">(</span>X<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> sfreq<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> mode<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span><span class="ansi-blue-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(0, 101, 202); font-weight: bold;">'multitaper'</span><span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> fmin<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span><span class="ansi-cyan-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(37, 143, 143); font-weight: bold;">0</span><span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> fmax<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span><span class="ansi-cyan-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(37, 143, 143); font-weight: bold;">35.0</span><span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> fsum<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>False<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> n_fft<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>None<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> mt_bandwidth<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>None<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> mt_adaptive<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>False<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> mt_low_bias<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>True<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">,</span> verbose<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">=</span>None<span class="ansi-yellow-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 125, 18); font-weight: bold;">)</span></pre><pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><span class="ansi-red-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 43, 49); font-weight: bold;"><br></span></pre><pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><span class="ansi-red-intense-fg ansi-bold" style="box-sizing: border-box; color: rgb(178, 43, 49); font-weight: bold;">ValueError</span>: when using select=&quot;i&quot;, select_range must contain integers, got dtype int64</pre></pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><br></pre>
<pre style="box-sizing: border-box; overflow: auto; font-size: 14px; padding: 0px; margin-top: 0px; margin-bottom: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline;"><br></pre>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<span style="font-size:12pt">
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-size:12pt">
<div><span style="font-size:12pt">
<div><span style="font-size:12pt">
<div><span style="font-size:12pt">
<div>
<div>
<p class="MsoNormal" style=""><b><span style="font-size:14.0pt; font-family:&quot;Georgia&quot;,&quot;serif&quot;; color:#002060"></span></b></p>
<b>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:16px"><span style="font-size:12pt">
<div><span style="font-size:12pt">
<div><span style="font-size:12pt">
<div><span style="font-size:12pt">
<p style=""><b><span style="font-size:10pt; font-family:Georgia,serif; color:black">Thanks With Warm Regards,</span></b></p>
<p style=""><b><span style="font-size:14pt; font-family:Georgia,serif; color:rgb(0,32,96)">MD. KHORSHED ALAM (Shishir)</span></b></p>
<p style=""><b><span style="font-size:14pt; font-family:Georgia,serif; color:rgb(0,32,96)"><b style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:16px"><span style="font-size:12pt"><span style="font-size:12pt"><span style="font-size:12pt"><span style="font-size:12pt"></span></span></span></span></b></span></b></p>
<b><b style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:16px">
<p><b><span style="font-size:14pt; font-family:Georgia,serif; color:rgb(0,32,96)">Graduate Research Assistant (GRA)</span></b></p>
</b></b></span>
<p></p>
<p style=""><font face="georgia, serif" color="#000000"><b><span style="font-size:12.8px">Center of Intelligent Signal and Imaging Research&nbsp;(CISIR)</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Department of Electrical and Electronic Engineering</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Universiti Teknologi PETRONAS</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Bandar Seri Iskandar</span><br style="font-size:12.8px">
<span style="font-size:12.8px">32610 Tronoh</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Perak Darul Ridzuan</span><br style="font-size:12.8px">
<span style="font-size:12.8px">Malaysia</span></b></font></p>
</div>
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt"></span></span></div>
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">Mobile no: &#43;60176459080</span><br style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt"></span></span></div>
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">Email ID:&nbsp;</span><a href="mailto:khorshed.alam@live.iium.edu.my" title="mailto:khorshed.alam@live.iium.edu.my Ctrl&#43;Click or tap to follow the link" target="_blank" style="color:rgb(17,85,204)" id="LPNoLP"><span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">khorshed.alam@live.iium.edu.my</span></a><br style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt"></span></span></div>
<span style="font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt"></span><span style="color:rgb(34,34,34); font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt">Alternative :<a href="mailto:shishir_lmu@yahoo.com" target="_blank" id="LPNoLP">shishir_lmu@yahoo.com</a>,&nbsp;<a href="mailto:alam.0213@gmail.com" target="_blank" title="mailto:alam.0213@gmail.com Ctrl&#43;Click or tap to follow the link" id="LPNoLP">alam.0213@gmail.com</a></span></b>
<p></p>
</div>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
<span style="color:rgb(34,34,34); font-family:'Franklin Gothic Medium',sans-serif; font-size:11pt; background-color:rgb(255,255,255)"><span style="font-family:'Franklin Gothic Medium',sans-serif"></span></span><br>
</span></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mne_analysis-bounces@nmr.mgh.harvard.edu &lt;mne_analysis-bounces@nmr.mgh.harvard.edu&gt; on behalf of Brunner, Clemens (clemens.brunner@uni-graz.at)
 &lt;clemens.brunner@uni-graz.at&gt;<br>
<b>Sent:</b> Tuesday, January 9, 2018 8:40:03 AM<br>
<b>To:</b> Discussion and support forum for the users of MNE Software<br>
<b>Subject:</b> Re: [Mne_analysis] Need Help to do Cross Spectral Density Analysis</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi!<br>
<br>
You can use the get_data method on your Epochs object, e.g.<br>
<br>
X = epochs.get_data()<br>
<br>
will return a 3D array of the desired shape.<br>
<br>
HTH<br>
Clemens<br>
<br>
<br>
&gt; On Jan 9, 2018, at 07:25, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; <br>
&gt; I want to do CSD analysis on EEG data but facing problem with the following function:
<br>
&gt; <br>
&gt; csd_array(X, sfreq, mode='multitaper' fmin=0 fmax=np.inf, fsum=True, n_fft=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, verbose=None):<br>
&gt; <br>
&gt; I am unable to extract the &quot;X&quot; parameter values. Can you let me know the file where &quot;X&quot; (data matrix) structure is defined in order to have a better idea about &quot;X&quot; parameter.<br>
&gt; <br>
&gt; Thank you.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Thanks With Warm Regards,<br>
&gt; MD. KHORSHED ALAM (Shishir)<br>
&gt; Graduate Research Assistant (GRA)<br>
&gt; Center of Intelligent Signal and Imaging Research (CISIR)<br>
&gt; Department of Electrical and Electronic Engineering<br>
&gt; Universiti Teknologi PETRONAS<br>
&gt; Bandar Seri Iskandar<br>
&gt; 32610 Tronoh<br>
&gt; Perak Darul Ridzuan<br>
&gt; Malaysia<br>
&gt; Mobile no: &#43;60176459080<br>
&gt; Email ID: khorshed.alam@live.iium.edu.my<br>
&gt; Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt; <br>
&gt; <br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
&gt; but does not contain patient information, please contact the sender and properly<br>
&gt; dispose of the e-mail.<br>
<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
Mne_analysis@nmr.mgh.harvard.edu<br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</div>
</span></font></div>
</body>
</html>