Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Extension test in dipy_fit_tensor seems brittle #177
Around line 46, we break the filename into the part before and after the first '.' I think this is for images, in order to get "filename" from "filename.nii.gz". But the filename could have another dot in it, and that would cause a mess. Maybe this could be better done by a little function that splits off known compression extensions like 'gz' and 'bz2' and then splits off the remaining extension?
It would be really good to have some tests for this script - they could go in dipy/tests/test_scripts.py