Skip to content

Commit be11f87

Browse files
authored
Merge pull request #68 from nipype/updated-auto-conv-generate
manually fixed nipype2pydra converter issue where formatters are assigned as strings
2 parents f7f209f + b61813a commit be11f87

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pydra/tasks/fsl/v6/maths/threshold.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)