<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thank you and unfortunately,&nbsp;still getting the same errors after executing the&nbsp;recommended codes.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I am using WIN 64-bits, Python 2.7.14.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I have checked the following&nbsp;<span style="font-size: 12pt;">code:&nbsp;</span></p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>import sys</div>
<div>sys.maxint</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">Output:&nbsp;&nbsp;</span><span style="font-size: 14px; white-space: pre-wrap;">2147483647 (32-bits integer value</span><span style="font-size: 12pt;">
</span><span style="font-size: 14px; white-space: pre-wrap;">)</span><br>
</div>
<div><span style="font-size: 14px; white-space: pre-wrap;"><br>
</span></div>
<div><span style="font-size: 14px; white-space: pre-wrap;">I think, because of this may get the errors. Please anyone helps me to update my 'sys' to 64-bits integer value?</span></div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</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=""><br>
</p>
<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" 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> Sunday, January 14, 2018 4:46:36 PM<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>
I don’t really understand why the array is of type int64 (and why that matters - are you on Python 2)?<br>
<br>
Can you try if this minimal example works for you:<br>
<br>
import mne<br>
import numpy as np<br>
<br>
X = np.random.rand(320, 60, 421)<br>
csd = mne.time_frequency.csd_array(X, 128)<br>
<br>
Clemens<br>
<br>
<br>
&gt; On Jan 14, 2018, at 11:15, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; Thank you for your suggestion. <br>
&gt; However, <br>
&gt; 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)<br>
&gt; X=epochs['aud_l', 'aud_r', 'vis_l', 'vis_r', 'smiley', 'button'].get_data()<br>
&gt; print(X.shape)<br>
&gt; Output: <br>
&gt; 320 matching events found<br>
&gt; 3 projection items activated<br>
&gt; Loading data for 320 events and 421 original time points ...<br>
&gt; 0 bad epochs dropped<br>
&gt; (320L, 60L, 421L)<br>
&gt; <br>
&gt; <br>
&gt; Then i have applied 3D array 'X' to:&nbsp; 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)<br>
&gt; <br>
&gt; But still getting the following errors: <br>
&gt; <br>
&gt; ValueError<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traceback (most recent call last)<br>
&gt; <br>
&gt; &lt;ipython-input-177-d7b62b6f3fe7&gt; in &lt;module&gt;()<br>
&gt; ----&gt; 1 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)<br>
&gt; <br>
&gt; ValueError: when using select=&quot;i&quot;, select_range must contain integers, got dtype int64<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; From: 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>
&gt; Sent: Tuesday, January 9, 2018 8:40:03 AM<br>
&gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; Subject: Re: [Mne_analysis] Need Help to do Cross Spectral Density Analysis<br>
&gt;&nbsp; <br>
&gt; Hi!<br>
&gt; <br>
&gt; You can use the get_data method on your Epochs object, e.g.<br>
&gt; <br>
&gt; X = epochs.get_data()<br>
&gt; <br>
&gt; will return a 3D array of the desired shape.<br>
&gt; <br>
&gt; HTH<br>
&gt; Clemens<br>
&gt; <br>
&gt; <br>
&gt; &gt; On Jan 9, 2018, at 07:25, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; &gt; <br>
&gt; &gt; Hi,<br>
&gt; &gt; <br>
&gt; &gt; I want to do CSD analysis on EEG data but facing problem with the following function:
<br>
&gt; &gt; <br>
&gt; &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; &gt; <br>
&gt; &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; &gt; <br>
&gt; &gt; Thank you.<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Thanks With Warm Regards,<br>
&gt; &gt; MD. KHORSHED ALAM (Shishir)<br>
&gt; &gt; Graduate Research Assistant (GRA)<br>
&gt; &gt; Center of Intelligent Signal and Imaging Research (CISIR)<br>
&gt; &gt; Department of Electrical and Electronic Engineering<br>
&gt; &gt; Universiti Teknologi PETRONAS<br>
&gt; &gt; Bandar Seri Iskandar<br>
&gt; &gt; 32610 Tronoh<br>
&gt; &gt; Perak Darul Ridzuan<br>
&gt; &gt; Malaysia<br>
&gt; &gt; Mobile no: &#43;60176459080<br>
&gt; &gt; Email ID: khorshed.alam@live.iium.edu.my<br>
&gt; &gt; Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<br>
&gt; &gt; <br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &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; &gt; <br>
&gt; &gt; <br>
&gt; &gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; &gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; &gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; &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; &gt; but does not contain patient information, please contact the sender and properly<br>
&gt; &gt; dispose of the e-mail.<br>
&gt; <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; 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></div>
</span></font></div>
</body>
</html>