Skip to content
Snippets Groups Projects
Commit 74812ead authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Warning message for convert/apply_x5

parent 3374f5a4
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ import fsl.utils.image.resample as resample ...@@ -20,7 +20,7 @@ import fsl.utils.image.resample as resample
import fsl.data.image as fslimage import fsl.data.image as fslimage
def parseArgs(args=None): def parseArgs(args):
"""Parses command-line arguments. """Parses command-line arguments.
:arg args: Sequence of command-line arguments. If ``None``, ``sys.argv`` :arg args: Sequence of command-line arguments. If ``None``, ``sys.argv``
...@@ -121,6 +121,15 @@ def main(args=None): ...@@ -121,6 +121,15 @@ def main(args=None):
type. 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) args = parseArgs(args)
if x5.inferType(args.xform) == 'linear': if x5.inferType(args.xform) == 'linear':
......
...@@ -182,6 +182,12 @@ def main(args=None): ...@@ -182,6 +182,12 @@ def main(args=None):
if args is None: if args is None:
args = sys.argv[1:] 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) args = parseArgs(args)
if args.ctype == 'flirt': doFlirt(args) if args.ctype == 'flirt': doFlirt(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment