Commit a7a40cca authored by Gerald Salin's avatar Gerald Salin
Browse files

#51 get cpu and RAM for slurm

parent 088e4e05
......@@ -81,7 +81,7 @@ class Component(object):
except: pass
elif type.lower() == "slurm" :
self.__cpu = int(re.match( r'.*-c\s+(\w+)\s+(\d+)\s?.*', self.batch_options).group(2))
self.__cpu = int(re.match( r'.*-c\s+(\d+).*', self.batch_options).group(1))
except: pass
self.__memory = re.match( r'.*--mem=(\d+\S+)\s?.*', self.batch_options).group(1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment