From 74812eadb78a42e42294525852f03701acadedb2 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Mon, 22 Jul 2019 17:48:57 +0100 Subject: [PATCH] RF: Warning message for convert/apply_x5 --- fsl/scripts/fsl_apply_x5.py | 11 ++++++++++- fsl/scripts/fsl_convert_x5.py | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/fsl/scripts/fsl_apply_x5.py b/fsl/scripts/fsl_apply_x5.py index ed535ea96..b64ce113b 100644 --- a/fsl/scripts/fsl_apply_x5.py +++ b/fsl/scripts/fsl_apply_x5.py @@ -20,7 +20,7 @@ import fsl.utils.image.resample as resample import fsl.data.image as fslimage -def parseArgs(args=None): +def parseArgs(args): """Parses command-line arguments. :arg args: Sequence of command-line arguments. If ``None``, ``sys.argv`` @@ -121,6 +121,15 @@ def main(args=None): type. """ + if args is None: + args = sys.argv[1:] + + print() + print('Warning: this version of fsl_apply_x5 is a development release. ' + 'Interface, behaviour, and input/output formats of future versions ' + 'may differ from this version.') + print() + args = parseArgs(args) if x5.inferType(args.xform) == 'linear': diff --git a/fsl/scripts/fsl_convert_x5.py b/fsl/scripts/fsl_convert_x5.py index f7bf84981..a4f22ab07 100644 --- a/fsl/scripts/fsl_convert_x5.py +++ b/fsl/scripts/fsl_convert_x5.py @@ -182,6 +182,12 @@ def main(args=None): if args is None: args = sys.argv[1:] + print() + print('Warning: this version of fsl_convert_x5 is a development release. ' + 'Interface, behaviour, and input/output formats of future versions ' + 'may differ from this version.') + print() + args = parseArgs(args) if args.ctype == 'flirt': doFlirt(args) -- GitLab