nipype
nipype copied to clipboard
fsl.MotionOutliers output spec no longer requires out_file to exist
fsl.MotionOutliers output spec no longer requires out_file to exist. fsl_motion_outliers does not create an output file when no timepoints are above the threshold, and in this situation fsl.MotionOutliers would throw a FileNotFoundError. This pull request fixes that immediate problem.
Coverage remained the same at 72.538% when pulling 95b4fc8ba644fcb7d321c84218de1fd957d85ab8 on beausievers:master into 4b392d55e469290139fc63d1a95928d665a2b08d on nipy:master.
@oesteban, @chrisfilo - we need to come up with a reasonable solution before this release. turns out the file is not created when the threshold does not result in any outliers. i was going to write a list outputs for this interface, but do you think we could have the following pattern.
if metadata exists does not exist
and file pattern created by name_template does not match an existing file
then keep output undefined
@satra @oesteban has this been solved or should we merge this? related to #1427