<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<!--[if lte mso 15 || CheckWebRef]-->
<div id="OwaReferenceAttachments" contenteditable="false">
<table style="padding-bottom: 13px; border-width: 0px; border-style: none;">
<tbody>
<tr valign="top">
<td>
<table style="border-width: 0px 0px 1px 0px; border-color:#C7C7C7; border-style: none none dotted none;">
<tbody>
<tr valign="top">
<td style="padding-bottom:7px;">
<table align="left" style="padding-right: 28px; border-width: 0px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div id="OwaReferenceAttachmentDescription" style="padding-left: 3px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102);">
MD KHORSHED ALAM has shared OneDrive for Business files with you. To view them, click the links below.
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td><a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=1eb6a280061744ca9b705f4ea7b58128c&amp;authkey=AQMmGyPVIA7Pz9jbPOIViSE" target="_blank">
<table align="left" style="padding-right: 28px; padding-bottom:10px; border-width: 0px; height:20px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div style="background-color: rgb(255, 255, 255); height: 20px; width: 20px; max-height: 20px;">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=1eb6a280061744ca9b705f4ea7b58128c&amp;authkey=AQMmGyPVIA7Pz9jbPOIViSE" target="_blank"><img width="20" style="border:0px;" src="https://r1.res.office365.com/owa/prem/images/dc-generic_20.png"></a></div>
</td>
<td>
<div id="OwaReferenceAttachmentFileName2" style="padding: 0px 0px 0px 5px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=1eb6a280061744ca9b705f4ea7b58128c&amp;authkey=AQMmGyPVIA7Pz9jbPOIViSE" target="_blank" style="text-decoration: none; margin: 0px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">sample_audvis_raw-eve.fif</a></div>
</td>
<td style="display:none;visibility:hidden;" width="0" height="0"><img width="0" height="0" style="visibility:hidden;border:0px;display:none" src="dummy.jpg" originalsrc="cid:c06237f4-1f3d-4eaa-8530-a87e5f338ded" title="sample_audvis_raw-eve.fif"></td>
</tr>
</tbody>
</table>
</a><a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=16a9797e124604875abf52b5a1d0b3bfb&amp;authkey=ARQ9cXRvtDNUYl_mOx9IeGU" target="_blank">
<table align="left" style="padding-right: 28px; padding-bottom:10px; border-width: 0px; height:20px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div style="background-color: rgb(255, 255, 255); height: 20px; width: 20px; max-height: 20px;">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=16a9797e124604875abf52b5a1d0b3bfb&amp;authkey=ARQ9cXRvtDNUYl_mOx9IeGU" target="_blank"><img width="20" style="border:0px;" src="https://r1.res.office365.com/owa/prem/images/dc-generic_20.png"></a></div>
</td>
<td>
<div id="OwaReferenceAttachmentFileName2" style="padding: 0px 0px 0px 5px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=16a9797e124604875abf52b5a1d0b3bfb&amp;authkey=ARQ9cXRvtDNUYl_mOx9IeGU" target="_blank" style="text-decoration: none; margin: 0px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">sample_audvis_raw-trans.fif</a></div>
</td>
<td style="display:none;visibility:hidden;" width="0" height="0"><img width="0" height="0" style="visibility:hidden;border:0px;display:none" src="dummy.jpg" originalsrc="cid:9afe9248-bbcf-4c47-80df-daed653fd635" title="sample_audvis_raw-trans.fif"></td>
</tr>
</tbody>
</table>
</a><a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=19e95cbf189a04d5cbea46a2a5ee09173&amp;authkey=AQxxQosHzzo84psAkGe5dR0" target="_blank">
<table align="left" style="padding-right: 28px; padding-bottom:10px; border-width: 0px; height:20px; background-color: rgb(255, 255, 255); border-spacing: 0px">
<tbody>
<tr valign="top">
<td style="padding: 0px;">
<div style="background-color: rgb(255, 255, 255); height: 20px; width: 20px; max-height: 20px;">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=19e95cbf189a04d5cbea46a2a5ee09173&amp;authkey=AQxxQosHzzo84psAkGe5dR0" target="_blank"><img width="20" style="border:0px;" src="https://r1.res.office365.com/owa/prem/images/dc-generic_20.png"></a></div>
</td>
<td>
<div id="OwaReferenceAttachmentFileName2" style="padding: 0px 0px 0px 5px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">
<a href="https://liveiiumedu-my.sharepoint.com/personal/khorshed_alam_live_iium_edu_my/_layouts/15/guestaccess.aspx?docid=19e95cbf189a04d5cbea46a2a5ee09173&amp;authkey=AQxxQosHzzo84psAkGe5dR0" target="_blank" style="text-decoration: none; margin: 0px; font-size: 14px; font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; color: rgb(0, 114, 198);">sample_audvis_raw.fif</a></div>
</td>
<td style="display:none;visibility:hidden;" width="0" height="0"><img width="0" height="0" style="visibility:hidden;border:0px;display:none" src="dummy.jpg" originalsrc="cid:7c2c842d-11cd-4d2e-8b35-c280581d3f06" title="sample_audvis_raw.fif"></td>
</tr>
</tbody>
</table>
</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="OwaReferenceAttachmentsEnd" style="display:none;visibility:hidden;"></div>
<!--[endif]--><!--[if lte mso 15 || CheckWebRef]--><!--[endif]-->
<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&nbsp;<span style="color: rgb(33, 33, 33); font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 14.6667px;">Clemens</span>,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Please here is the&nbsp;scripts:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><br>
</div>
<div>import mne</div>
<div>import numpy as np</div>
<div>import os</div>
<div>import matplotlib</div>
<div>from mne.datasets import sample</div>
<div>from mne.time_frequency import csd_epochs, csd_array</div>
<div>data_path = sample.data_path()</div>
<div>raw_fname = data_path &#43; '/MEG/sample/sample_audvis_raw.fif'</div>
<div>raw = mne.io.read_raw_fif(raw_fname, preload=True, verbose=None )</div>
<div>eeg_channels=raw.pick_types(meg=False, eeg=True, stim=False, eog=False, ecg=False, emg=False, ref_meg='auto', misc=False, resp=False, chpi=False, exci=False, ias=False, syst=False, seeg=False, dipole=False, gof=False, bio=False, ecog=False, fnirs=False,
 include=(), exclude='bads', selection=None)</div>
<div>raw=raw.filter(l_freq=0.5, h_freq=35.0, picks=None, filter_length=10, l_trans_bandwidth='auto', h_trans_bandwidth='auto', n_jobs=1, method='fir', iir_params=None, phase='zero', fir_window='hamming', fir_design=None, pad='edge', verbose=None)</div>
<div>mne.compute_proj_raw(raw, start=0, stop=None, duration=1, n_grad=0, n_mag=0, n_eeg=5, reject=None, flat=None, n_jobs=1, verbose='INFO')</div>
<div>events = mne.find_events(eeg_channels, stim_channel='STI 014')</div>
<div>event_id = dict(aud_l=1, aud_r=2, vis_l=3, vis_r=4, smiley=5, button=32)</div>
<div>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>mne.time_frequency.csd_epochs(epochs, mode='multitaper', fmin=0.0, fmax=35.0, fsum=False, tmin=-0.2, tmax=0.5, n_fft=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, projs=None, verbose=None)</div>
<div>X=epochs['aud_l', 'aud_r', 'vis_l', 'vis_r', 'smiley', 'button'].get_data()</div>
<div>mne.time_frequency.csd_array(X, sfreq=600.614990234375, mode='multitaper', fmin=0.0, fmax=35.0, fsum=False, n_fft=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, verbose=None)</div>
<div><br>
</div>
I am just starting work with MNE Python and practicing with online available MNE data-set.
<p></p>
<p style="margin-top:0;margin-bottom:0">Please refer attached.</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=""><b><span style="font-size:10.0pt; font-family:&quot;Georgia&quot;,&quot;serif&quot;; color:black"><br>
</span></b></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> Monday, January 15, 2018 11:06:52 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>
Could you share the raw data file with me so that I can reproduce the issue? I'd also need your script, at least the part in which you load the data, i.e. eeg_channels, events, event_id.<br>
<br>
Clemens<br>
<br>
<br>
&gt; On Jan 15, 2018, at 10:59, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; <br>
&gt; Epochs Object: <br>
&gt; 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; <br>
&gt; The following epochs is used for the following function and work perfectly I think.<br>
&gt; <br>
&gt; import mne<br>
&gt; from mne.time_frequency import csd_epochs<br>
&gt; mne.time_frequency.csd_epochs(epochs, mode='multitaper', fmin=fmin, fmax=fmax, fsum=False, tmin=tmin, tmax=tmax, n_fft=n_fft, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, projs=None, verbose=None)<br>
&gt; <br>
&gt; Problem arises once I applied 'X'=3D array of epochs data to: <br>
&gt; <br>
&gt; mne.time_frequency.csd_array(X, sfreq, mode='multitaper', fmin=fmin, fmax=fmax, fsum=True, n_fft=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, verbose=None)<br>
&gt; <br>
&gt; I am using windows system and I run your given code.<br>
&gt; Output:&nbsp; ['C:\\Anaconda2\\envs\\mymayavi\\lib\\site-packages\\mne']<br>
&gt; <br>
&gt; Unfortunately, I don't understand about your later instruction (e.g. Replace $MNE, download test data and copy into the given path)<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: Monday, January 15, 2018 9:13:14 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; Could you please send me your Epochs object? I want to test if it works on my machine.<br>
&gt; <br>
&gt; In addition, can you please run the tests in $MNE/time_frequency/tests? You can find out where MNE is installed with:<br>
&gt; <br>
&gt; import mne<br>
&gt; mne.__path__<br>
&gt; <br>
&gt; Then replace $MNE in the path above with the actual path.<br>
&gt; <br>
&gt; Note that you also need to download the test data separately (<a href="https://github.com/mne-tools/mne-python/tree/master/mne/io/tests/data">https://github.com/mne-tools/mne-python/tree/master/mne/io/tests/data</a>) and copy everything into $MNE/io/tests/data.<br>
&gt; <br>
&gt; Does someone else have an idea/suggestion what's going on?<br>
&gt; <br>
&gt; Clemens<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &gt; On Jan 15, 2018, at 09:51, 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; Yes, I am using Anaconda 2 python distribution and I followed all the instruction on the given link.<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; 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; &gt; Sent: Monday, January 15, 2018 8:34:51 AM<br>
&gt; &gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; &gt; Subject: Re: [Mne_analysis] Need Help to do Cross Spectral Density Analysis<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; Hi!<br>
&gt; &gt; <br>
&gt; &gt; Are you using the recommended Anaconda Python distribution? There might be something wrong with you Python setup. Did you follow the installation instructions summarized on
<a href="https://martinos.org/mne/stable/install_mne_python.html?">https://martinos.org/mne/stable/install_mne_python.html?</a><br>
&gt; &gt; <br>
&gt; &gt; Clemens<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; &gt; On Jan 15, 2018, at 09:18, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Thank you and unfortunately, still getting the same errors after executing the recommended codes.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I am using WIN 64-bits, Python 2.7.14.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I have checked the following code: <br>
&gt; &gt; &gt; import sys<br>
&gt; &gt; &gt; sys.maxint<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Output:&nbsp; 2147483647 (32-bits integer value )<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I think, because of this may get the errors. Please anyone helps me to update my 'sys' to 64-bits integer value?<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Thanks With Warm Regards,<br>
&gt; &gt; &gt; MD. KHORSHED ALAM (Shishir)<br>
&gt; &gt; &gt; Graduate Research Assistant (GRA)<br>
&gt; &gt; &gt; Center of Intelligent Signal and Imaging Research (CISIR)<br>
&gt; &gt; &gt; Department of Electrical and Electronic Engineering<br>
&gt; &gt; &gt; Universiti Teknologi PETRONAS<br>
&gt; &gt; &gt; Bandar Seri Iskandar<br>
&gt; &gt; &gt; 32610 Tronoh<br>
&gt; &gt; &gt; Perak Darul Ridzuan<br>
&gt; &gt; &gt; Malaysia<br>
&gt; &gt; &gt; Mobile no: &#43;60176459080<br>
&gt; &gt; &gt; Email ID: khorshed.alam@live.iium.edu.my<br>
&gt; &gt; &gt; Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<br>
&gt; &gt; &gt; <br>
&gt; &gt; &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; &gt; &gt; Sent: Sunday, January 14, 2018 4:46:36 PM<br>
&gt; &gt; &gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; &gt; &gt; Subject: Re: [Mne_analysis] Need Help to do Cross Spectral Density Analysis<br>
&gt; &gt; &gt;&nbsp; <br>
&gt; &gt; &gt; Hi!<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I don’t really understand why the array is of type int64 (and why that matters - are you on Python 2)?<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Can you try if this minimal example works for you:<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; import mne<br>
&gt; &gt; &gt; import numpy as np<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; X = np.random.rand(320, 60, 421)<br>
&gt; &gt; &gt; csd = mne.time_frequency.csd_array(X, 128)<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Clemens<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; On Jan 14, 2018, at 11:15, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt; Thank you for your suggestion. <br>
&gt; &gt; &gt; &gt; However, <br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; X=epochs['aud_l', 'aud_r', 'vis_l', 'vis_r', 'smiley', 'button'].get_data()<br>
&gt; &gt; &gt; &gt; print(X.shape)<br>
&gt; &gt; &gt; &gt; Output: <br>
&gt; &gt; &gt; &gt; 320 matching events found<br>
&gt; &gt; &gt; &gt; 3 projection items activated<br>
&gt; &gt; &gt; &gt; Loading data for 320 events and 421 original time points ...<br>
&gt; &gt; &gt; &gt; 0 bad epochs dropped<br>
&gt; &gt; &gt; &gt; (320L, 60L, 421L)<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; But still getting the following errors: <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; ValueError<br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &lt;ipython-input-177-d7b62b6f3fe7&gt; in &lt;module&gt;()<br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; ValueError: when using select=&quot;i&quot;, select_range must contain integers, got dtype int64<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Thanks With Warm Regards,<br>
&gt; &gt; &gt; &gt; MD. KHORSHED ALAM (Shishir)<br>
&gt; &gt; &gt; &gt; Graduate Research Assistant (GRA)<br>
&gt; &gt; &gt; &gt; Center of Intelligent Signal and Imaging Research (CISIR)<br>
&gt; &gt; &gt; &gt; Department of Electrical and Electronic Engineering<br>
&gt; &gt; &gt; &gt; Universiti Teknologi PETRONAS<br>
&gt; &gt; &gt; &gt; Bandar Seri Iskandar<br>
&gt; &gt; &gt; &gt; 32610 Tronoh<br>
&gt; &gt; &gt; &gt; Perak Darul Ridzuan<br>
&gt; &gt; &gt; &gt; Malaysia<br>
&gt; &gt; &gt; &gt; Mobile no: &#43;60176459080<br>
&gt; &gt; &gt; &gt; Email ID: khorshed.alam@live.iium.edu.my<br>
&gt; &gt; &gt; &gt; Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; Sent: Tuesday, January 9, 2018 8:40:03 AM<br>
&gt; &gt; &gt; &gt; To: Discussion and support forum for the users of MNE Software<br>
&gt; &gt; &gt; &gt; Subject: Re: [Mne_analysis] Need Help to do Cross Spectral Density Analysis<br>
&gt; &gt; &gt; &gt;&nbsp; <br>
&gt; &gt; &gt; &gt; Hi!<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; You can use the get_data method on your Epochs object, e.g.<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; X = epochs.get_data()<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; will return a 3D array of the desired shape.<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; HTH<br>
&gt; &gt; &gt; &gt; Clemens<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; On Jan 9, 2018, at 07:25, MD KHORSHED ALAM &lt;khorshed.alam@live.iium.edu.my&gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; I want to do CSD analysis on EEG data but facing problem with the following function:
<br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; Thank you.<br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; Thanks With Warm Regards,<br>
&gt; &gt; &gt; &gt; &gt; MD. KHORSHED ALAM (Shishir)<br>
&gt; &gt; &gt; &gt; &gt; Graduate Research Assistant (GRA)<br>
&gt; &gt; &gt; &gt; &gt; Center of Intelligent Signal and Imaging Research (CISIR)<br>
&gt; &gt; &gt; &gt; &gt; Department of Electrical and Electronic Engineering<br>
&gt; &gt; &gt; &gt; &gt; Universiti Teknologi PETRONAS<br>
&gt; &gt; &gt; &gt; &gt; Bandar Seri Iskandar<br>
&gt; &gt; &gt; &gt; &gt; 32610 Tronoh<br>
&gt; &gt; &gt; &gt; &gt; Perak Darul Ridzuan<br>
&gt; &gt; &gt; &gt; &gt; Malaysia<br>
&gt; &gt; &gt; &gt; &gt; Mobile no: &#43;60176459080<br>
&gt; &gt; &gt; &gt; &gt; Email ID: khorshed.alam@live.iium.edu.my<br>
&gt; &gt; &gt; &gt; &gt; Alternative :shishir_lmu@yahoo.com, alam.0213@gmail.com<br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; &gt; &gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; &gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; &gt; &gt; &gt; &gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; &gt; &gt; &gt; &gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; &gt; &gt; &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; &gt; &gt; &gt; but does not contain patient information, please contact the sender and properly<br>
&gt; &gt; &gt; &gt; &gt; dispose of the e-mail.<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; &gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &gt; &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; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; &gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &gt; &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; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; &gt; &gt; &gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; &gt; &gt; &gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; &gt; &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; &gt; &gt; but does not contain patient information, please contact the sender and properly<br>
&gt; &gt; &gt; &gt; dispose of the e-mail.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &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; &gt; _______________________________________________<br>
&gt; &gt; &gt; Mne_analysis mailing list<br>
&gt; &gt; &gt; Mne_analysis@nmr.mgh.harvard.edu<br>
&gt; &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; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; &gt; &gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; &gt; &gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; &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; &gt; but does not contain patient information, please contact the sender and properly<br>
&gt; &gt; &gt; dispose of the e-mail.<br>
&gt; &gt; <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; 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>