File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -77,22 +77,28 @@ class Threshold(shell.Task["Threshold.Outputs"]):
7777 use_nonzero_voxels : bool = shell .arg (
7878 help = "use nonzero voxels to calculate robust range" ,
7979 requires = ["use_robust_range" ],
80+ default = False ,
8081 )
8182 in_file : File = shell .arg (
8283 help = "image to operate on" , argstr = "{in_file}" , position = 2
8384 )
84- internal_datatype : ty . Any = shell .arg (
85+ internal_datatype : str | None = shell .arg (
8586 help = "datatype to use for calculations (default is float)" ,
8687 argstr = "-dt {internal_datatype}" ,
8788 position = 1 ,
89+ default = None ,
8890 )
89- output_datatype : ty . Any = shell .arg (
91+ output_datatype : str | None = shell .arg (
9092 help = "datatype to use for output (default uses input type)" ,
9193 argstr = "-odt {output_datatype}" ,
9294 position = - 1 ,
95+ default = None ,
9396 )
9497 nan2zeros : bool = shell .arg (
95- help = "change NaNs to zeros before doing anything" , argstr = "-nan" , position = 3
98+ help = "change NaNs to zeros before doing anything" ,
99+ argstr = "-nan" ,
100+ position = 3 ,
101+ default = False ,
96102 )
97103
98104 class Outputs (shell .Outputs ):
You can’t perform that action at this time.
0 commit comments