diff --git a/.zenodo.json b/.zenodo.json index d01d2409e3..a0823fef52 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -924,6 +924,11 @@ "affiliation": "MIT, HMS", "name": "Ghosh, Satrajit", "orcid": "0000-0002-5312-6729" + }, + { + "affiliation": "Department of Psychological and Brain Sciences, Dartmouth College", + "name": "Petre, Bogdan", + "orcid": "0000-0002-8437-168X" } ], "keywords": [ diff --git a/nipype/interfaces/fsl/base.py b/nipype/interfaces/fsl/base.py index 7be822e4f2..61010ee9a0 100644 --- a/nipype/interfaces/fsl/base.py +++ b/nipype/interfaces/fsl/base.py @@ -57,6 +57,7 @@ class Info(PackageInfo): "NIFTI_PAIR": ".img", "NIFTI_GZ": ".nii.gz", "NIFTI_PAIR_GZ": ".img.gz", + "GIFTI": ".func.gii", } if os.getenv("FSLDIR"): @@ -72,8 +73,8 @@ def output_type_to_ext(cls, output_type): Parameters ---------- - output_type : {'NIFTI', 'NIFTI_GZ', 'NIFTI_PAIR', 'NIFTI_PAIR_GZ'} - String specifying the output type. + output_type : {'NIFTI', 'NIFTI_GZ', 'NIFTI_PAIR', 'NIFTI_PAIR_GZ', 'GIFTI'} + String specifying the output type. Note: limited GIFTI support. Returns ------- diff --git a/nipype/interfaces/fsl/model.py b/nipype/interfaces/fsl/model.py index 60057d69db..2a148025f5 100644 --- a/nipype/interfaces/fsl/model.py +++ b/nipype/interfaces/fsl/model.py @@ -812,12 +812,20 @@ class FILMGLS(FSLCommand): _cmd = "film_gls" input_spec = FILMGLSInputSpec output_spec = FILMGLSOutputSpec + if Info.version() and LooseVersion(Info.version()) > LooseVersion("5.0.6"): input_spec = FILMGLSInputSpec507 output_spec = FILMGLSOutputSpec507 elif Info.version() and LooseVersion(Info.version()) > LooseVersion("5.0.4"): input_spec = FILMGLSInputSpec505 + def __init__(self, **inputs): + super(FILMGLS, self).__init__(**inputs) + if Info.version() and LooseVersion(Info.version()) > LooseVersion("5.0.6"): + if 'output_type' not in inputs: + if isdefined(self.inputs.mode) and self.inputs.mode == 'surface': + self.inputs.output_type = 'GIFTI' + def _get_pe_files(self, cwd): files = None if isdefined(self.inputs.design_file):