<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. </p>
<p style="margin-top:0;margin-bottom:0">However, </p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>Code: 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:
<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;"><ipython-input-177-d7b62b6f3fe7></span> in <span class="ansi-cyan-fg" style="box-sizing: border-box; color: rgb(96, 198, 200);"><module></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;">----> 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="i", 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, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", 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:"Georgia","serif"; 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 (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: +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: </span><a href="mailto:khorshed.alam@live.iium.edu.my" title="mailto:khorshed.alam@live.iium.edu.my Ctrl+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>, <a href="mailto:alam.0213@gmail.com" target="_blank" title="mailto:alam.0213@gmail.com Ctrl+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 <mne_analysis-bounces@nmr.mgh.harvard.edu> on behalf of Brunner, Clemens (clemens.brunner@uni-graz.at)
<clemens.brunner@uni-graz.at><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> </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>
> On Jan 9, 2018, at 07:25, MD KHORSHED ALAM <khorshed.alam@live.iium.edu.my> wrote:<br>
> <br>
> Hi,<br>
> <br>
> I want to do CSD analysis on EEG data but facing problem with the following function:
<br>
> <br>
> 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>
> <br>
> I am unable to extract the "X" parameter values. Can you let me know the file where "X" (data matrix) structure is defined in order to have a better idea about "X" parameter.<br>
> <br>
> Thank you.<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Thanks With Warm Regards,<br>
> MD. KHORSHED ALAM (Shishir)<br>
> Graduate Research Assistant (GRA)<br>
> Center of Intelligent Signal and Imaging Research (CISIR)<br>
> Department of Electrical and Electronic Engineering<br>
> Universiti Teknologi PETRONAS<br>
> Bandar Seri Iskandar<br>
> 32610 Tronoh<br>
> Perak Darul Ridzuan<br>
> Malaysia<br>
> Mobile no: +60176459080<br>
> Email ID: khorshed.alam@live.iium.edu.my<br>
> Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<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>
> <br>
> <br>
> The information in this e-mail is intended only for the person to whom it is<br>
> addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
> contains patient information, please contact the Partners Compliance HelpLine at<br>
> <a href="http://www.partners.org/complianceline">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
> but does not contain patient information, please contact the sender and properly<br>
> 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>