Closed firasm closed 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
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:
quick fix, add if/else statement checking the size of the data_shape array