Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 0a5e1897 authored by Olga Stamati's avatar Olga Stamati
Browse files

force type int in args parser

parent b1f8a1d0
Pipeline #48337 passed with stages
in 23 minutes and 43 seconds
......@@ -164,7 +164,7 @@ def ldicParser(parser):
parser.add_argument('-hws',
'--half-window-size',
nargs=1,
type=numpy.uint,
type=int,
default=None,
dest='HWS',
help="Half correlation window size, measured each side of the node pixel (assumed equal in all 3 directions -- see -hws3 for different setting). Default = 10px")
......@@ -187,7 +187,7 @@ def ldicParser(parser):
parser.add_argument('-gpm',
'--grid-point-margin',
nargs=1,
type=numpy.uint,
type=int,
default=[3],
dest='GRID_POINT_MARGIN',
help="Margin in pixels for grid-point registration. Default = 3px")
......@@ -195,14 +195,14 @@ def ldicParser(parser):
parser.add_argument('-gpm3',
'--grid-point-margin3',
nargs=3,
type=numpy.uint,
type=int,
default=None,
dest='GRID_POINT_MARGIN',
help="Subpixel margin for grid-point registration. Default = 3px")
parser.add_argument('-gpi',
'--grid-point-max-iterations',
type=numpy.uint,
type=int,
default=50,
dest='GRID_POINT_MAX_ITERATIONS',
help="Maximum iterations for grid-point registration. Default = 50")
......@@ -216,7 +216,7 @@ def ldicParser(parser):
parser.add_argument('-gpo',
'--grid-point-interpolation-order',
type=numpy.uint,
type=int,
default=1,
dest='GRID_POINT_INTERPOLATION_ORDER',
help="Interpolation order for grid-point registration. Default = 1")
......@@ -241,7 +241,7 @@ def ldicParser(parser):
parser.add_argument('-cni',
'--correct-neighbours-for-field-interpolation',
type=numpy.uint,
type=int,
default=12,
dest='CORRECT_NEIGHBOURS',
help="Number of neighbours for field interpolation. Default = 12")
......@@ -254,7 +254,7 @@ def ldicParser(parser):
parser.add_argument('-cmfr',
'--correct-median-filter-radius',
type=numpy.uint,
type=int,
default=2,
dest='CORRECT_MEDIAN_FILTER_RADIUS',
help="Radius of median filter for correction of input F field. Default = 2")
......@@ -550,7 +550,7 @@ def ddicParser(parser):
parser.add_argument('-nfi',
'--neighbours-for-field-interpolation',
type=numpy.uint,
type=int,
default=12,
dest='NEIGHBOURS',
help="Number of neighbours for field interpolation. Default = 12")
......@@ -563,14 +563,14 @@ def ddicParser(parser):
parser.add_argument('-gpm',
'--grid-point-margin',
type=numpy.uint,
type=int,
default=2,
dest='GRID_POINT_MARGIN',
help="Margin in pixels for grid-point registration to be added to label dilate. Default = 2px")
parser.add_argument('-gpi',
'--grid-point-max-iterations',
type=numpy.uint,
type=int,
default=50,
dest='GRID_POINT_MAX_ITERATIONS',
help="Maximum iterations for grid-point registration. Default = 50")
......@@ -584,7 +584,7 @@ def ddicParser(parser):
parser.add_argument('-gpo',
'--grid-point-interpolation-order',
type=numpy.uint,
type=int,
default=1,
dest='GRID_POINT_INTERPOLATION_ORDER',
help="Interpolation order for grid-point registration. Default = 3")
......@@ -774,7 +774,7 @@ def multiModalRegistrationParser(parser):
parser.add_argument('-spi',
'--grid-point-max-iterations',
type=numpy.uint,
type=int,
default=50,
dest='GRID_POINT_MAX_ITERATIONS',
help="Max number of iterations to optimise Phi. Default = 50")
......@@ -981,7 +981,7 @@ def gdicParser(parser):
parser.add_argument('-mit',
'--max-iterations',
type=numpy.uint,
type=int,
default=25,
dest='MAX_ITERATIONS',
help="Max iterations for global correlation. Default = 25")
......@@ -1132,7 +1132,7 @@ def regularStrainParser(parser):
parser.add_argument('-cni',
'--correct-neighbours-for-field-interpolation',
type=numpy.uint,
type=int,
default=12,
dest='CORRECT_NEIGHBOURS',
help="Neighbours for field interpolation. Default = 12")
......@@ -1145,7 +1145,7 @@ def regularStrainParser(parser):
parser.add_argument('-cmfr',
'--correct-median-filter-radius',
type=numpy.uint,
type=int,
default=2,
dest='CORRECT_MEDIAN_FILTER_RADIUS',
help="Radius of median filter for correction of input displacement field. Default = 2")
......@@ -1626,7 +1626,7 @@ def BCFromDVCParser(parser):
parser.add_argument('-ni',
'--neighbours-for-interpolation',
type=numpy.uint,
type=int,
default=4,
dest='NEIGHBOURS_INT',
help="Neighbours for field interpolation. Default = 4")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment