diff --git a/mriqc/__about__.py b/mriqc/__about__.py index ad530b202..e8470b760 100644 --- a/mriqc/__about__.py +++ b/mriqc/__about__.py @@ -71,7 +71,7 @@ 'nipy', 'statsmodels', 'versioneer', - 'xvfbwrapper' + 'xvfbwrapper', ] LINKS_REQUIRES = [ diff --git a/mriqc/workflows/utils.py b/mriqc/workflows/utils.py index 75948bcc7..08c39f7ab 100644 --- a/mriqc/workflows/utils.py +++ b/mriqc/workflows/utils.py @@ -166,12 +166,9 @@ def slice_wise_fft(in_file, ftmask=None, spike_thres=3., out_prefix=None): def get_fwhmx(): fwhm_args = {"combine": True, "detrend": True} - afni_version_tpl = afni.Info.version() - afni_version = StrictVersion(".".join([str(afni_version_tpl[0]), - str(afni_version_tpl[1]), - str(afni_version_tpl[2])])) + afni_version = StrictVersion('%s.%s.%s' % afni.Info.version()) if afni_version >= StrictVersion("2017.2.3"): fwhm_args['args'] = '-ShowMeClassicFWHM' fwhm_args['acf'] = True fwhm_interface = afni.FWHMx(**fwhm_args) - return fwhm_interface \ No newline at end of file + return fwhm_interface