Skip to content

Nipype multiproc plugin modification to use GPU(s) as resources. #2298

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

Closed
wants to merge 9 commits into from
8 changes: 5 additions & 3 deletions nipype/interfaces/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1570,10 +1570,12 @@ def __init__(self, command=None, terminal_output=None, **inputs):
super(CommandLine, self).__init__(**inputs)
self._environ = None
# Set command. Input argument takes precedence
self._cmd = command or getattr(self, '_cmd', None)

if self._cmd is None:
if not hasattr(self, '_cmd'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this bit should be reverted as the above command is equivalent.

self._cmd = None
if self.cmd is None and command is None:
raise Exception("Missing command")
if command:
self._cmd = command

if terminal_output is not None:
self.terminal_output = terminal_output
Expand Down
Loading