<html><body>
<ul style="padding-left: 0pt">
<p><font size="2" face="Trebuchet MS">Dear pymvpa-Team, </font><br>
<br>
<font size="2" face="Trebuchet MS">I'm new to your toolbox (running version 2.6.0) and I got stucked while data loading from my own dataset and right now I really don't know what the issue could be and what to look up.</font><br>
<font size="2" face="Trebuchet MS">So, I sorted data analog to openfmri structure and paths are all fine since I can load one data file but not the other. </font><br>
<font size="2" face="Trebuchet MS">My loading procedure looks as follows and it works fine for a different flavor (here, I try to load normalized data, but it works with the unnormalized ones from the same subject):</font><br>
</ul>
<font size="2" face="Trebuchet MS">of = OpenFMRIDataset(datapath)</font><br>
<font size="2" face="Trebuchet MS">print of.get_task_descriptions()</font><br>
<font size="2" face="Trebuchet MS">conditions = of.get_model_conditions(1)</font><br>
<font size="2" face="Trebuchet MS">print conditions</font><br>
<font size="2" face="Trebuchet MS">print [c['name'] for c in conditions]</font><br>
<font size="2" face="Trebuchet MS">ds = of.get_model_bold_dataset(</font><br>
<font size="2" face="Trebuchet MS">   model_id=1,</font><br>
<font size="2" face="Trebuchet MS">   subj_id=2,</font><br>
<font size="2" face="Trebuchet MS">   flavor='iwrbadvols',  </font><br>
<font size="2" face="Trebuchet MS">   mask=opj(datapath, 'sub002', 'masks', 'test', 'brain.nii.gz'), </font><br>
<font size="2" face="Trebuchet MS">   modelfx=fit_event_hrf_model, </font><br>
<font size="2" face="Trebuchet MS">   time_attr='time_coords', condition_attr='condition')</font><br>
<font size="2" face="Trebuchet MS">print "Data loaded"</font>
<ul style="padding-left: 0pt"><br>
<font size="2" face="Trebuchet MS">When I try to load the normalized data, I always end up in the numpy file "function_base.py" in line 76 with "num = int(num)" and the issue is that "num" in this case has "Inf" as value.</font><br>
<br>
<font size="2" face="Trebuchet MS">The error message says exactly: </font><br>
<font size="2" face="Trebuchet MS">" The debugged program raised the exception OverflowError (cannot convert float infinity to integer)" </font><br>
<font size="2" face="Trebuchet MS">(plus file reference to function_base.py and line 76)</font><br>
<br>
<font size="2" face="Trebuchet MS">So, data are from same subject, look fine if I inspect them, just the normalized ones of course are resampled to the normalization template (so there are 3x more data with 770MB just this file).</font><br>
<font size="2" face="Trebuchet MS">And I can't see anything how to set/influence this variable.</font><br>
<br>
<font size="2" face="Trebuchet MS">I really can't figure out where I have to look now to fix this - could there be something wrong with the data or is the file size just too big? Do I have to use another option for the function call?</font><br>
<br>
<font size="2" face="Trebuchet MS">Thanks for any advice</font><br>
<font size="2" face="Trebuchet MS">Lydia </font><br>
<br>
<font size="2" face="Trebuchet MS">P.S: I'm not sure if this is relevant: the toolbox is running on a virtual machine on a middle performing computer (at least the VM is using 5 GB RAM and 4 processors)</font><br>
<br>
<br>
</ul>
</body></html>