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"]):
77
77
use_nonzero_voxels : bool = shell .arg (
78
78
help = "use nonzero voxels to calculate robust range" ,
79
79
requires = ["use_robust_range" ],
80
+ default = False ,
80
81
)
81
82
in_file : File = shell .arg (
82
83
help = "image to operate on" , argstr = "{in_file}" , position = 2
83
84
)
84
- internal_datatype : ty . Any = shell .arg (
85
+ internal_datatype : str | None = shell .arg (
85
86
help = "datatype to use for calculations (default is float)" ,
86
87
argstr = "-dt {internal_datatype}" ,
87
88
position = 1 ,
89
+ default = None ,
88
90
)
89
- output_datatype : ty . Any = shell .arg (
91
+ output_datatype : str | None = shell .arg (
90
92
help = "datatype to use for output (default uses input type)" ,
91
93
argstr = "-odt {output_datatype}" ,
92
94
position = - 1 ,
95
+ default = None ,
93
96
)
94
97
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 ,
96
102
)
97
103
98
104
class Outputs (shell .Outputs ):
You can’t perform that action at this time.
0 commit comments