-
Notifications
You must be signed in to change notification settings - Fork 533
[wip]Fix/deprecated 2551 (closes #2551 #2508) #2552
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
Conversation
Ah, See: nipype/nipype/interfaces/base/core.py Lines 173 to 174 in a1ab518
nipype/nipype/interfaces/base/core.py Line 906 in a1ab518
So what's happening at nipype/nipype/interfaces/base/core.py Line 475 in a1ab518
I think the easiest thing would be to add def run(self, cwd=None, ignore_exception=None, **inputs):
if ignore_exception is None:
ignore_exception = self.ignore_exception And then just change this line to use the local variable nipype/nipype/interfaces/base/core.py Lines 534 to 535 in a1ab518
We should also remove: nipype/nipype/interfaces/base/core.py Lines 922 to 925 in a1ab518
and nipype/nipype/interfaces/base/core.py Lines 953 to 955 in a1ab518
|
So I would actually undo all of the changes in the current diff, and replace nipype/nipype/interfaces/base/specs.py Lines 321 to 328 in a1ab518
with nipype/nipype/interfaces/base/specs.py Lines 367 to 381 in a1ab518
This will require a huge |
I'm completely confused. Why do we deprecate these traits, what does it actually mean? we just want to use it differently? only to some methods? |
I'm pretty sure this was @oesteban deprecating, but the reason is that they make more sense as attributes than as inputs to be set in the input spec. For instance, nobody passes |
Ok, so I understand that should remove them from input, but be sure that they can be passed to all methods that are using them and to I will revert my changes and try again |
@effigies - I'm not sure about removing |
d797d02
to
573582e
Compare
I added |
…update (ignore_Exception and terminal_output cant be an input anymore)
Sure. It at least gives an informative error. We may want to set a milestone to remove it, just so we don't forget, but that's fine with me. @satra do you agree?
Doing it the way we currently are allows a subclass to set a different default like so: class NewCommand(CommandLine):
_terminal_output = 'file_stdout' If we set a default in So I would keep it as is. |
@effigies - fine with me. |
Any preferred timeline? 1.1? 1.2? Given that we've only seen two issues, both from internal bugs, not external use of these inputs, I think we can fully remove them after a reasonably short interval. |
let's do 1.1 |
we can schedule 1.1 for end of june, right after hbm |
removing
terminal_output
andignore_exception
when creatingCommandLine
instances. These traits are deprecated inCommandLineInputSpec
Closes #2551
Closes #2508