From f70b8cf2e2c9d258971bac51e5345d7b7b9aa680 Mon Sep 17 00:00:00 2001 From: "Thomas G. Close" Date: Thu, 11 Sep 2025 14:57:59 +1000 Subject: [PATCH] made some threshold fields non-mandatory --- pydra/tasks/fsl/v6/maths/threshold.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pydra/tasks/fsl/v6/maths/threshold.py b/pydra/tasks/fsl/v6/maths/threshold.py index f4bf340..2fef6bc 100644 --- a/pydra/tasks/fsl/v6/maths/threshold.py +++ b/pydra/tasks/fsl/v6/maths/threshold.py @@ -77,22 +77,28 @@ class Threshold(shell.Task["Threshold.Outputs"]): use_nonzero_voxels: bool = shell.arg( help="use nonzero voxels to calculate robust range", requires=["use_robust_range"], + default=False, ) in_file: File = shell.arg( help="image to operate on", argstr="{in_file}", position=2 ) - internal_datatype: ty.Any = shell.arg( + internal_datatype: str | None = shell.arg( help="datatype to use for calculations (default is float)", argstr="-dt {internal_datatype}", position=1, + default=None, ) - output_datatype: ty.Any = shell.arg( + output_datatype: str | None = shell.arg( help="datatype to use for output (default uses input type)", argstr="-odt {output_datatype}", position=-1, + default=None, ) nan2zeros: bool = shell.arg( - help="change NaNs to zeros before doing anything", argstr="-nan", position=3 + help="change NaNs to zeros before doing anything", + argstr="-nan", + position=3, + default=False, ) class Outputs(shell.Outputs):