Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nipype/pipeline/plugins/pbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(self, **kwargs):
super(PBSPlugin, self).__init__(template, **kwargs)

def _is_pending(self, taskid):
proc = subprocess.Popen(["qstat", taskid],
# subprocess.Popen requires taskid to be a string
proc = subprocess.Popen(["qstat", str(taskid)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
_, e = proc.communicate()
Expand Down
3 changes: 2 additions & 1 deletion nipype/pipeline/plugins/sge.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def __init__(self, **kwargs):
super(SGEPlugin, self).__init__(template, **kwargs)

def _is_pending(self, taskid):
proc = subprocess.Popen(["qstat", '-j', taskid],
# subprocess.Popen requires taskid to be a string
proc = subprocess.Popen(["qstat", '-j', str(taskid)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
o, _ = proc.communicate()
Expand Down