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

RF: Warn when reference and image are both >3D

parent 31c3b7af
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,12 @@ def parseArgs(argv): ...@@ -147,6 +147,12 @@ def parseArgs(argv):
args.shape = sanitiseList(parser, args.shape, args.input, 'shape') args.shape = sanitiseList(parser, args.shape, args.input, 'shape')
args.dim = sanitiseList(parser, args.dim, args.input, 'dim') args.dim = sanitiseList(parser, args.dim, args.input, 'dim')
if (args.reference is not None) and \
(args.input.ndim > 3) and \
(args.reference.ndim > 3):
print('Reference and image are both >3D - only '
'resampling along the spatial dimensions.')
return args return 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