<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">


<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I’m new to Python. I
have learnt some elementary knowledge before I come to PyMVPA. But I don’t know
how to easily check the memory consumption. My system is Windows XP (32bit). Now
I’m using IPython. Is there any magic function for me to check the memory
consumption?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>ONE MORE QUESTION.
When I use the following statement to load modules, there are several warnings.
They have been attached with this mail.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>                                                
<i>from mvpa.suite import *<o:p></o:p></i></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thank you!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>Best
wishes!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>    
<i>Lu FENG<o:p></o:p></i></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>fenglu@fingerpass.net.cn<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal align=left style='text-align:left'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span
style='font-size:10.0pt;font-family:宋体'>冯璐</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
[mailto:fenglu@fingerpass.net.cn] <br>
<b>Sent:</b> 2011</span><span style='font-size:10.0pt;font-family:宋体'>年</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>8</span><span
style='font-size:10.0pt;font-family:宋体'>月</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>22</span><span
style='font-size:10.0pt;font-family:宋体'>日</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 17:44<br>
<b>To:</b> 'pkg-exppsy-pymvpa@lists.alioth.debian.org'<br>
<b>Subject:</b> RE: [pymvpa]MemoryError when running tutorial_lib.py<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Dear Michael and
Zonglei,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
Thank you for your attention! I have to turn to some other tasks these days.
But the problem is still there.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
There are two sets of data. One is tutorial data from the website (size of the
file <bold.nii.gz> is 294MB), the other is the test data coming with the
software (size of the file <bold.nii.gz> is 1.25MB). There is no problem
when I used the following codes to handle with the latter, but the memory error
occurred when I tried to handle with the former.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
In [43]: dataset = fmri_dataset(<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 
        ....: samples =
os.path.join(pymvpa_dataroot, 'bold.nii.gz'),<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 
        ....: targets = attr.targets,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>  
      ....: chunks = attr.chunks,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>  
      ....: mask = os.path.join(pymvpa_dataroot,
'mask_brain.nii.gz'))<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
As attached is the statement and the error message. Would you please read the
error message? I don’t think it has anything to do with mismatched or missing
brackets.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
If the software can’t handle with the dataset no larger than 294MB, it won’t be
proper for my coming research. If I misused the software or I haven’t describe
the situation clearly, please contact me without hesitation.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>        
Thank you!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>Best
wishes!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>    
<i>Lu FENG<o:p></o:p></i></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;color:#1F497D'>fenglu@fingerpass.net.cn<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal align=left style='text-align:left'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span
style='font-size:10.0pt;font-family:宋体'>冯璐</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
[mailto:fenglu@fingerpass.net.cn] <br>
<b>Sent:</b> 2011</span><span style='font-size:10.0pt;font-family:宋体'>年</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>8</span><span
style='font-size:10.0pt;font-family:宋体'>月</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>8</span><span
style='font-size:10.0pt;font-family:宋体'>日</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 17:42<br>
<b>To:</b> 'pkg-exppsy-pymvpa@lists.alioth.debian.org'<br>
<b>Subject:</b> MemoryError when running tutorial_lib.py<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Dear experts,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>        
When I typed <b><i>ds = get_haxby2001_data()</i> </b>in IPython, I’ve got a
exception of MemoryError. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>The error
message is (‘EOF in multi-line statement’, (2, 0))<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>The size of
‘Bold.nii.gz’ is 294MB. And memory size of my computer is 3GB.<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US>Does anyone know
what happened? Is it out of memory? Thank you in advance.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt'>Best wishes!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt'>    
<i>Lu FENG<o:p></o:p></i></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt'>fenglu@fingerpass.net.cn<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal align=left style='text-align:left'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'><br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6329 (20110727) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><br>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6398 (20110821) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></span></p>

<p class=MsoNormal align=left style='text-align:left'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'><br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6398 (20110821) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><br>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6399 (20110822) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com">http://www.eset.com</a><o:p></o:p></span></p>

</div>

 <BR><BR>__________ Information from ESET NOD32 Antivirus, version of virus signature database 6399 (20110822) __________<BR><BR>The message was checked by ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.com">http://www.eset.com</A><BR> </body>

</html>