DrSAR / SARlabpy

git clone git@pfeifer.phas.ubc.ca:SARlabpy (do not push to github, please)
http://code.SARlab.ca
Other
1 stars 0 forks source link

sarpy.fmoosvi.analysis.h_fit_T1_IR does not handle single slice data properly #282

Closed firasm closed 10 years ago

firasm commented 10 years ago

Currently, the loop to fit voxel by voxel data expects data_shape to be a 3D array, which it isn't when there is only one slice:

        for x in xrange(data_shape[0]):
            for y in xrange(data_shape[1]):
                for slc in xrange(data_shape[2]):   

quick fix, add if/else statement checking the size of the data_shape array