From eb4380774fa6197da6c0b4df2f560653aeb92132 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 3 May 2024 17:17:35 +0100 Subject: [PATCH] BF: Honour $FSLOUTPUTTYPE, otherwise output files saved by FSL tools may not be detected --- fsl/wrappers/wrapperutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsl/wrappers/wrapperutils.py b/fsl/wrappers/wrapperutils.py index 0f9a1842..09871c10 100644 --- a/fsl/wrappers/wrapperutils.py +++ b/fsl/wrappers/wrapperutils.py @@ -1268,7 +1268,8 @@ def fileOrImage(*args, **kwargs): return infile def prepOut(workdir, name, val): - return op.join(workdir, '{}.nii.gz'.format(name)) + return op.join(workdir, f'{name}{fslimage.defaultExt()}') + def load(name, path): -- GitLab