-
Notifications
You must be signed in to change notification settings - Fork 532
[FIX] fix afni.allineate interface #2502
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
234893e
34f67b4
ef25d15
32cd9b8
4179f5c
78f68ae
cda56e9
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 |
---|---|---|
|
@@ -1072,6 +1072,12 @@ def _filename_from_source(self, name, chain=None): | |
if not isdefined(retval) or "%s" in retval: | ||
if not trait_spec.name_source: | ||
return retval | ||
|
||
# Do not generate filename when excluded by other inputs | ||
if trait_spec.xor and any(isdefined(getattr(self.inputs, field)) | ||
for field in trait_spec.xor): | ||
return retval | ||
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. 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. 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. Ah, right. I had it kind of backwards, but a similar fix to this should resolve #2506. I'll merge and propose a quick PR for that one. |
||
|
||
if isdefined(retval) and "%s" in retval: | ||
name_template = retval | ||
else: | ||
|
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.
A question: Is
-prefix functional_allineate
the correct default, or should it befunctional_allineate.nii
?If it should have the extension, we should add
keep_extension=True
to theout_file
trait spec.@tsalo @salma1601 You might also be good people to chime in here.