-
Notifications
You must be signed in to change notification settings - Fork 532
Expose --float option in ants registration #1024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
773ec15
fe3d5b0
ec0345d
f9de8af
7a574ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,6 +321,8 @@ class RegistrationInputSpec(ANTSCommandInputSpec): | |
winsorize_lower_quantile = traits.Range( | ||
low=0.0, high=1.0, value=0.0, argstr='%s', usedefault=True, desc="The Lower quantile to clip image ranges") | ||
|
||
float_computations = traits.Int(argstr='--float %d', value=0, desc="Use single floating point for computations") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gerddie - i think this can simply be:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for example as used here: |
||
|
||
|
||
class RegistrationOutputSpec(TraitedSpec): | ||
forward_transforms = traits.List( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hjmjohnson quick check here: does
--float
require an argument? in the past i have simply used--float
as a flag. should we turn this into a Bool?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a quick look at the ANTs command line parser implementation it seems that the parser adds a default '1' if the argument following the command line option string starts with '-' and can not interpreted as a float (i.e. it is supposedly the start of the next command line option string), or if there are no arguments left.
However, one could also add "--float 0" to the command line ...