def getPSPpath_GPAW(log): return parseLine(log, 'setups').split(': ')[-1].strip()
def getPSPpath_QE(log): return parseLine(log, 'pseudo_dir').split("='")[1][:-2]
def getENG_GPAW(log): return float(parseLine(log, 'Extrapolated:', -1).split()[-1])
def getENG_QE(log): return float(parseLine(log, 'total energy', -2).split()[-2])
def getFWID(user, storedpath): if user != 'ksb': return None out = readOnSherOrSlac(storedpath + 'FW_submit.script') return int(parseLine(out, '--fw_id').split()[-1]) raise ValueError, 'No fw_id found in FW_submit.script: \n\n%s' % out