Skip to content

Commit 1caf7b9

Browse files
committed
job_slots was not being cast to integer
1 parent 29e3533 commit 1caf7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/plugins/sge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, job_num, job_queue_state, job_time, job_queue_name, job_slots
4747
self._job_info_creation_time = time.time(
4848
) # When this job was created (for comparing against initalization)
4949
self._job_queue_name = job_queue_name # Where the job is running
50-
self._job_slots = job_slots # How many slots are being used
50+
self._job_slots = int(job_slots) # How many slots are being used
5151
self._qsub_command_line = qsub_command_line
5252

5353
def __repr__(self):
@@ -91,7 +91,7 @@ def update_info(self, job_queue_state, job_time, job_queue_name, job_slots):
9191
self._job_queue_state = job_queue_state
9292
self._job_time = job_time
9393
self._job_queue_name = job_queue_name
94-
self._job_slots = job_slots
94+
self._job_slots = int(job_slots)
9595

9696
def set_state(self, new_state):
9797
self._job_queue_state = new_state

0 commit comments

Comments
 (0)