From bd83075c2c36f1c54b951ac43870695c836c8610 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@protonmail.com> Date: Wed, 9 Feb 2022 15:40:28 +0000 Subject: [PATCH] --imain in topup can take multiple filenames --- fsl/wrappers/eddy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsl/wrappers/eddy.py b/fsl/wrappers/eddy.py index 53a90b9ca..27570d1fa 100644 --- a/fsl/wrappers/eddy.py +++ b/fsl/wrappers/eddy.py @@ -92,7 +92,8 @@ def applytopup(imain, datain, index, **kwargs): } asrt.assertFileExists(datain) - asrt.assertIsNifti(imain) + for fn in imain.split(','): + asrt.assertIsNifti(fn) cmd = [ 'applytopup', '--imain={}'.format(imain), -- GitLab