def readDlg(self, dlgFile, ligand=None):
if ligand is not None:
self.ligMol = ligand
if self.defaultParser:
dlo = DockingLogObject(self, dlgFile)
else:
dlo = DockingLogObject(self, dlgFile, self.parser)
if len(dlo.parser.WARNINGS):
self.warnings.extend(dlo.parser.WARNINGS)
self.version = dlo.version
if not self.ch:
self.ch = ConformationHandler(self.ligMol, dlo.dpo['about']['value'])