11 from builtins
import range
12 import Alignment.MillePedeAlignmentAlgorithm.mpslib.Mpslibclass
as mpslib
16 os.system(
"mps_update.py > /dev/null")
18 lib = mpslib.jobdatabase()
22 for i
in range(len(lib.JOBID)):
24 if lib.JOBSTATUS[i]
in (
"DONE",
"EXIT",
"FETCH",
"DISABLEDFETCH"):
26 theJobDir =
'jobData/'+lib.JOBDIR[i]
27 theBatchDirectory =
r"LSFJOB_"+ lib.JOBID[i]
29 command =
'mv %s/* %s/ > /dev/null 2>&1' % (theBatchDirectory, theJobDir)
31 command =
'rm -rf '+theBatchDirectory
35 if 'DISABLED' in lib.JOBSTATUS[i]:
36 lib.JOBSTATUS[i] =
'DISABLEDFETCH' 38 lib.JOBSTATUS[i] =
'FETCH' 43 os.system(
'mps_check.py')