vistalab / vistadisp

14 stars 16 forks source link

retinotopy crash on empty storedImagesMatrices dir #2

Closed ariekahn closed 10 years ago

ariekahn commented 10 years ago

MATLAB 2014a on OSX 10.9, Running ret with an empty 'Applications2/Retinotopy/standard/storedImagesMatrices/' causes it to crash when hitting go. This goes away as soon as any .mat file exists, but is a problem on a fresh install of vistadisp.

>> ret
[setRetinotopyParams]:Setting stimulus parameters for 8 bars with blanks.
PTB-INFO: Running on OSX 10.9+ - Enabling protection against AppNap and other evils.
[retSetCommonDefaults]:no calibration.
[retSetCommonDefaults]: Stimulus size: 10.2 degrees / 9.072333e+02 pixels.

*******************************************
[retParamsCheck]:Scan time and MR time frames:
Duration without stimulus (junk frames 1):   0.0 sec [  0 MRtf]
Duration of prescan (junk frames 2):        12.0 sec [  8 MRtf]
Duration of data to be collected:          192.0 sec [128 MRtf]
Total stimulus duration:                   204.0 sec [136 MRtf]
Total scan duration:                       204.0 sec [136 MRtf] (3.4 minutes).
*******************************************

[getDevices]:Getting device information and testing KbCheck:
   Device 1: Apple Internal Keyboard / Trackpad (USB): KbCheck(1) failed.
   Device 2: Apple Internal Keyboard / Trackpad (USB): KbCheck(2) OK.
   Device 3: Apple Internal Keyboard / Trackpad (USB): KbCheck(3) OK.
   Device 4: Apple Internal Keyboard / Trackpad (USB): KbCheck(4) OK.
[setRetinotopyDevices]:Getting subjects responses from device #2
[setRetinotopyDevices]:Getting experimentor's responses from device #2
[]:Getting experimentor's responses from device #Error using load
Unable to read file
'/Code/vistadisp/Applications2/Retinotopy/standard/storedImagesMatrices/N':
no such file or directory.
Error in makeRetinotopyStimulus_bars (line 36)
    load(params.loadMatrix);
Error in retLoadStimulus (line 23)
        stimulus = makeRetinotopyStimulus_bars(params);
Error in doRetinotopyScan (line 20)
stimulus = retLoadStimulus(params);
Error in ret (line 50)
doRetinotopyScan(params); 
>> 
JWinawer commented 10 years ago

Fixed with recent commit. Thanks for pointing out the bug.