Replace optparse with argparse.

Optparse is deprecated.  Argparse will allow tighter integration with
PDB2PQR/APBS.
This commit is contained in:
Nathan Baker committed 2020-05-12 13:13:28 -07:00
1 parent aeb1663d7b
commit ae7e8b6430
3 files changed
+107 -64

No files matched your search

+2 -1
View File
@@ -16,7 +16,8 @@ def main():
Reads in structure files, calculates pKa values, and prints pKa files
"""
# loading options, flaggs and arguments
options, pdbfiles = propka.lib.loadOptions()
options = propka.lib.loadOptions()
pdbfiles = options.filenames
for pdbfile in pdbfiles:
my_molecule = propka.molecular_container.Molecular_container(pdbfile, options)