Skip to content
Snippets Groups Projects
Unverified Commit 3efe637c authored by Xavier Robin's avatar Xavier Robin
Browse files

test: hide warnings

parent 12c0b061
Branches
Tags
No related merge requests found
......@@ -45,6 +45,7 @@ void PrintUsage()
std::cout << " -i - ignore compounds reserved by the PDB (01-99, DRG, INH, LIG)" << std::endl;
std::cout << " -o - ignore obsolete compounds" << std::endl;
std::cout << " -v - be more verbose" << std::endl;
std::cout << " -q - be more quiet (last of -v or -q is applied)" << std::endl;
}
int main(int argc, char const *argv[])
......@@ -74,6 +75,8 @@ int main(int argc, char const *argv[])
ignore_obsolete=true;
} else if (param=="-v") {
Logger::Instance().PushVerbosityLevel(4);
} else if (param=="-q") {
Logger::Instance().PushVerbosityLevel(0);
} else {
PrintUsage();
return 0;
......
......@@ -11,7 +11,7 @@ def CreateComplib(compound_dict_path, chemlib_out_path, extra_args=None):
chemdict_tool_path = os.path.join(prefix_path, "bin", "chemdict_tool")
if not os.path.exists(chemdict_tool_path):
raise RuntimeError("Expect chemdict_tool:", chemdict_tool_path)
cmd = [chemdict_tool_path, "create", compound_dict_path, chemlib_out_path]
cmd = [chemdict_tool_path, "create", compound_dict_path, chemlib_out_path, "-q"]
if extra_args:
cmd += extra_args
subprocess.run(cmd, stdout=subprocess.PIPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment