+ using new parsers now
[qpalma.git] / scripts / ModelSelection.py
index 0fb0e3a..af196e3 100644 (file)
@@ -26,19 +26,21 @@ class Model:
 
          #print 'instance created, starting to pickle configuration...'
          name = currentRun['name']
-         instance_fn = 'run_%s.pickle'%name
+         instance_fn = '%s.pickle'%name
          fh = open(instance_fn,'w+')
          cPickle.dump(currentInstance,fh)
          fh.close()
 
          self.allInstances.append(instance_fn)
 
-
    def doSelection(self):
       for instance in self.allInstances:
-         time.sleep(3)
-         #os.system('echo ./resurrect %d | qsub -l h_vmem=1.0G -cwd -j y -N \"model_%d.log\"'%(idx,idx))
-         os.system('echo "./resurrect %s >out_%s.log 2>err_%s.log &"'%(instance,instance,instance))
+         time.sleep(2)
+         cmd = 'echo ./resurrect %s | qsub -l h_vmem=5.0G -cwd -j y -N \"%s.log\"'%(instance,instance)
+         #print cmd
+         os.system(cmd)
+
+         #os.system('echo "./resurrect %s >out_%s.log 2>err_%s.log &"'%(instance,instance,instance))
 
 
 if __name__ == '__main__':