def getBonlyOutputFromLog(self, _strBestLog): listLog = _strBestLog.split("\n") indexLine = 0 xsDataResultBest = XSDataResultBest() xsDataBestCollectionPlan = XSDataBestCollectionPlan() xsDataCrystalScale = XSDataCrystalScale() # while not "Relative scale" in listLog[indexLine]: indexLine += 1 xsDataCrystalScale.scale = XSDataDouble(listLog[indexLine].split()[-1]) # while not "Overall B-factor" in listLog[indexLine]: indexLine += 1 xsDataCrystalScale.bFactor = XSDataDouble(listLog[indexLine].split()[-2]) xsDataBestCollectionPlan.crystalScale = xsDataCrystalScale xsDataResultBest.addCollectionPlan(xsDataBestCollectionPlan) return xsDataResultBest
def getBonlyOutputFromLog(self, _strBestLog): listLog = _strBestLog.split("\n") indexLine = 0 xsDataResultBest = XSDataResultBest() xsDataBestCollectionPlan = XSDataBestCollectionPlan() xsDataCrystalScale = XSDataCrystalScale() # while not "Relative scale" in listLog[indexLine]: indexLine += 1 xsDataCrystalScale.scale = XSDataDouble(listLog[indexLine].split()[-1]) # while not "Overall B-factor" in listLog[indexLine]: indexLine += 1 xsDataCrystalScale.bFactor = XSDataDouble( listLog[indexLine].split()[-2]) xsDataBestCollectionPlan.crystalScale = xsDataCrystalScale xsDataResultBest.addCollectionPlan(xsDataBestCollectionPlan) return xsDataResultBest