MikeDacre / fyrd

Submit functions and shell scripts to torque and slurm clusters or local machines using python.
https://fyrd.science
MIT License
22 stars 8 forks source link

Calling Queue with no arguments throws error #14

Closed jbloom closed 8 years ago

jbloom commented 8 years ago

For slurm, calling q = Queue() or q = Queue(user=None) raises an exception, even though None is the default value of user:

>>> q = cluster.Queue(user=None)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "cluster/queue.py", line 141, in __init__
     self._update()
   File "cluster/queue.py", line 311, in _update
     self.user):
   File "cluster/queue.py", line 641, in slurm_queue_parser
     outqueue.append((sid, sname, suser, spartition, sstate, snodelist,
UnboundLocalError: local variable 'snodelist' referenced before assignment
MikeDacre commented 8 years ago

This should be fixed now.