Make PROPKA input file generation optional.

Fixes https://github.com/jensengroup/propka-3.1/issues/51.
This commit is contained in:
Nathan Baker
2020-05-31 10:26:56 -07:00
parent 52554d905a
commit 9b59d924b2
6 changed files with 27 additions and 10 deletions

View File

@@ -78,6 +78,8 @@ def run_propka(options, pdb_path, tmp_path):
molecule = read_molecule_file(str(pdb_path), molecule)
molecule.calculate_pka()
molecule.write_pka()
if args.generate_propka_input:
molecule.write_propka()
finally:
os.chdir(cwd)