Commit ea0e556a authored by Fabrice Allain's avatar Fabrice Allain
Browse files

fix: avoid key errors if all parameters don't exist with pdbqual command

parent 800db24c
......@@ -32,15 +32,15 @@ class AriaEcPdbqual(CommandProtocol):
runChecks(
workingDirectory=self.settings.pdbqual["output_directory"],
trashDirectory=self.settings.pdbqual["trash_directory"],
procheckExe=self.settings.main["procheck_executable"],
procheckOnOff=1 if self.settings.main["procheck_enabled"] in ("yes", True, "True") else 0,
whatIfExe=self.settings.main["whatif_executable"],
whatifOnOff=1 if self.settings.main["whatif_enabled"] in ("yes", True, "True") else 0,
clashlistExe=self.settings.main["clashlist_executable"],
clashlistOnOff=1 if self.settings.main["clashlist_enabled"] in ("yes", True, "True") else 0,
prosaExe=self.settings.main["prosa_executable"] if self.settings.main["prosa_executable"] else "",
prosaOnOff=1 if self.settings.pdbqual["prosa_enabled"] in ("yes", True, "True") else 0,
cshExe=self.settings.pdbqual["csh_executable"],
procheckExe=self.settings.main.get("procheck_executable", "procheck"),
procheckOnOff=1 if self.settings.main.get("procheck_enabled", "no") in ("yes", True, "True") else 0,
whatIfExe=self.settings.main.get("whatif_executable", "whatif"),
whatifOnOff=1 if self.settings.main.get("whatif_enabled", "no") in ("yes", True, "True") else 0,
clashlistExe=self.settings.main.get("clashlist_executable", "clashlist"),
clashlistOnOff=1 if self.settings.main.get("clashlist_enabled", "no") in ("yes", True, "True") else 0,
prosaExe=self.settings.main.get("prosa_executable", "prosa"),
prosaOnOff=1 if self.settings.pdbqual.get("prosa_enabled", "no") in ("yes", True, "True") else 0,
cshExe=self.settings.pdbqual.get("csh_executable", "csh"),
howManyPdb=len(self.settings.pdbqual["infiles"]),
verbose=1,
fileList=self.settings.pdbqual["infiles"],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment