Nathan Baker
c796ba6b4d
Clean up line breaks in output.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:00:10 -07:00
Nathan Baker
a27f054ac7
Clean up line breaks in molecular_container.py.
2020-05-25 19:43:32 -07:00
Nathan Baker
2658f80906
Clean up line breaks in ligand.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 19:33:07 -07:00
Nathan Baker
72851b5498
Clean line breaks.
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 19:21:56 -07:00
Nathan Baker
5242366006
Clean up line breaks in lib.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 19:09:11 -07:00
Nathan Baker
e5dedc1786
De-lint iterative.py
...
See https://github.com/jensengroup/propka-3.1/issues/43 .
2020-05-25 18:55:02 -07:00
Nathan Baker
919305d8a3
Clean up line breaks in group.py and hybrid36.py
...
https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 18:49:51 -07:00
Nathan Baker
891fecaab3
Clean up line breaks in determinants.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 18:15:46 -07:00
Nathan Baker
ba8362f514
Clean up line breaks in coupled_groups.py
...
See https://github.com/jensengroup/propka-3.1/issues/43 .
2020-05-25 18:09:59 -07:00
Nathan Baker
284a33dfe8
Clean up line breaks.
...
See https://github.com/jensengroup/propka-3.1/issues/43 .
2020-05-25 17:49:52 -07:00
Nathan Baker
1ce44b77bf
Clean up line breaks in calculations.py
...
See https://github.com/jensengroup/propka-3.1/issues/43 .
2020-05-25 17:33:16 -07:00
Nathan Baker
142fa5a004
Clean up line breaks in bonds.py.
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 17:18:57 -07:00
Nathan Baker
4408b23448
Clean up line breaks.
...
For https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 16:42:09 -07:00
Nathan Baker
75cdf0ea04
De-lint tests.
2020-05-25 14:44:53 -07:00
Nathan Baker
d30705d490
De-lint propka31.py.
2020-05-25 14:38:20 -07:00
Nathan Baker
98263516bc
De-lint version.py
2020-05-25 14:35:02 -07:00
Nathan Baker
2fef500307
Restore 3.0 compatibility functions.
2020-05-25 14:31:17 -07:00
Nathan Baker
6702f96730
De-lint vector_algebra.py
2020-05-25 13:53:04 -07:00
Nathan Baker
2321a4df8a
De-lint run.py.
2020-05-25 13:10:55 -07:00
Nathan Baker
cd0e9e5c3d
De-lint protonate.py.
2020-05-25 13:05:16 -07:00
Nathan Baker
b3e2685e94
De-lint propka.py.
2020-05-25 11:54:41 -07:00
Nathan Baker
47226bb4b0
Fix deprecated string syntax.
2020-05-25 11:29:11 -07:00
Nathan Baker
0de12f0f3a
Merge branch 'master' into nathan/delint
2020-05-25 10:00:29 -07:00
Nathan Baker
a88774c136
Have Git ignore Visual Studio code files.
2020-05-25 09:59:52 -07:00
Nathan Baker
0164630e2f
Remove duplicate propka.cfg file.
2020-05-25 09:59:20 -07:00
Nathan Baker
32fbb30464
De-lint parameters.py.
2020-05-25 09:58:51 -07:00
Nathan Baker
c7c626791a
Remove duplicate propka.cfg.
2020-05-25 09:55:09 -07:00
Nathan Baker
f38faaed97
De-lint output.py.
...
Public methods/members changed; dependencies checked via Google.
2020-05-25 08:24:54 -07:00
Nathan Baker
3342d3418c
Document need to change Molecular_container name.
2020-05-25 07:59:55 -07:00
Nathan Baker
6190f6d5f5
De-lint molecular_container.py.
2020-05-24 19:47:10 -07:00
Nathan Baker
d8ed3262b9
Ignore Visual Studio Code files.
2020-05-24 18:32:47 -07:00
Nathan Baker
786a4c9292
De-lint ligand.py.
2020-05-24 18:29:38 -07:00
Nathan Baker
3a5bae5b41
De-lint ligand_pka_values.py
2020-05-24 16:39:59 -07:00
Nathan Baker
59a8717664
De-lint lib.py.
2020-05-24 15:30:35 -07:00
Nathan Baker
04b52d458c
De-lint iterative.py.
2020-05-24 12:05:48 -07:00
Nathan Baker
95e132e520
De-lint hybrid36.py
2020-05-24 11:21:55 -07:00
Nathan Baker
a534d97016
De-lint groups.py
...
I did my best (via Google) to make sure that renamed public members and
methods had minimal impact on others' code.
2020-05-24 11:13:06 -07:00
Nathan Baker
6cbcac3be9
Make de-linting easier.
2020-05-24 11:12:47 -07:00
Nathan Baker
476ab1f276
De-lint determinants.py.
...
Public methods/members names were changed. These were checked against
Google for potential impact on other packages.
2020-05-24 08:53:51 -07:00
Nathan Baker
25648327ce
De-lint determinant.py.
2020-05-24 08:21:05 -07:00
Nathan Baker
c985e02713
De-lint coupled_groups.py
...
Some methods/attributes were changed but were checked in Google to make
sure other codes were not affected.
2020-05-23 17:57:12 -07:00
Nathan Baker
83c54ec153
De-lint conformation_container.py.
...
Some public methods/members were changed. These were checked against
Google for obvious use in other packages.
2020-05-23 17:22:18 -07:00
Nathan Baker
5afc5d511a
Removed missed comment.
2020-05-23 15:51:47 -07:00
Nathan Baker
5ed77a7cf6
De-lint calculations.py.
...
Changes were made to function names; impacted functions changed in other
files. Google searches performed to look for impacts to other software.
2020-05-23 15:02:23 -07:00
Nathan Baker
1611e9d6ea
Partial de-lint of calculations.py.
...
Pausing here since I just deleted contactDesolvation(). However, there
was no way that anyone was using this function since it was very badly
broken and could not run.
2020-05-23 13:24:05 -07:00
Nathan Baker
02ca72d91d
Remove self.h_dist attribute.
...
Only used in __init__ function.
Addresses https://github.com/jensengroup/propka-3.1/pull/40#discussion_r429570945
2020-05-23 13:16:18 -07:00
Nathan Baker
db8571414e
Convert classmethod to staticmethod.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/40#discussion_r429570235
and https://github.com/jensengroup/propka-3.1/pull/40#discussion_r429570322
2020-05-23 13:11:38 -07:00
Nathan Baker
f444d138ee
Partial de-lint of calculations.py.
...
This really should be 3 separate files. The initial de-lint focused on
the distance and hydrogen addition functions.
2020-05-23 12:34:31 -07:00
Nathan Baker
f2aef4ce4f
De-lint bonds.py
2020-05-23 09:57:53 -07:00
Nathan Baker
e1656a4911
Remove exec() from atom.py
2020-05-23 09:44:50 -07:00
Nathan Baker
3cfcc8f6d3
Merge pull request #33 from Electrostatics/nathan/delint
...
De-lint atoms.py and part of bonds.py
2020-05-23 09:39:02 -07:00
Nathan Baker
120718fbd8
Remove property method suggestion.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/33#discussion_r429113755
2020-05-23 09:33:47 -07:00
Nathan Baker and Oliver Beckstein
df6d8492da
Simplify bonded atom counting
...
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com >
2020-05-23 09:31:23 -07:00
Nathan Baker
69a369c17f
Remove suggestion for @property method.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/33#discussion_r429112013
2020-05-23 09:29:24 -07:00
Nathan Baker
4b3dee54f7
Simplify bonded atom counting.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/33#discussion_r429110880
and https://github.com/jensengroup/propka-3.1/pull/33#discussion_r429111421
2020-05-23 09:26:03 -07:00
Nathan Baker
66e3e552c9
Add description of hybrid36.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/33#discussion_r429108127
2020-05-23 09:20:49 -07:00
Nathan Baker
98ad8702d6
Merge branch 'master' into nathan/delint
2020-05-23 09:20:01 -07:00
Nathan Baker
5114442610
Merge branch 'master' into nathan/delint
2020-05-23 08:57:50 -07:00
Nathan Baker
62f7dfce1a
Merge pull request #36 from Electrostatics/nathan/tests
...
Add pytest-based testing to PROPKA
2020-05-23 08:44:00 -07:00
Nathan Baker
73f0ce47af
Replace pandas with numpy.testing
...
Addresses https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429104797
2020-05-23 08:40:17 -07:00
Nathan Baker
0b4241cce6
Merge remote-tracking branch 'origin/nathan/argpase' into nathan/tests
2020-05-23 08:25:24 -07:00
Nathan Baker
ebddfa1f9f
Add tests_require argument to setup.py.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429100526
Since the tests_require argument is deprecated, I'm also leaving the
requirements.txt file to make sure the dependencies are captured in the
future.
2020-05-23 08:19:19 -07:00
Nathan Baker
1b0ad999b1
Remove unnecessary exception catching.
...
Fixes https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429063049
2020-05-23 08:06:54 -07:00
Nathan Baker
6f603ab17c
Merge pull request #37 from Electrostatics/nathan/argpase
...
Fix error when using PROPKA with PDB2PQR
2020-05-23 08:04:30 -07:00
Nathan Baker
6288711209
Update requirements with pandas.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429106093
2020-05-22 21:04:09 -07:00
Nathan Baker
2266e0a102
Consistent test naming.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429099054
2020-05-22 20:55:58 -07:00
Nathan Baker
48f69eb544
Support Python 3.5 and higher.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429094884
2020-05-22 20:41:59 -07:00
Nathan Baker and Oliver Beckstein
03e12ae15c
Update propka/lib.py
...
I cannot spell.
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com >
2020-05-22 20:22:30 -07:00
Nathan Baker
80c8cca420
Nuke some backwards-compatible PROPKA 3.0 support.
2020-05-21 20:50:39 -07:00
Nathan Baker
76418a1a15
De-lint calculations.py up to difficult decision.
...
Do we drop 3.0 support? I vote "yes" but will leave that for the next
commit.
2020-05-21 20:45:47 -07:00
Nathan Baker
013167026f
De-lint bonds.py
2020-05-21 19:29:54 -07:00
Nathan Baker
51a59f9979
Merge branch 'nathan/tests' into nathan/delint
2020-05-21 15:58:49 -07:00
Nathan Baker
a49015c297
Merge branch 'nathan/tests' into nathan/argpase
2020-05-21 15:58:03 -07:00
Nathan Baker
f13d3d8121
PROPKA testing working with pytest.
2020-05-21 15:50:23 -07:00
Nathan Baker
fc27d8bfc3
Fix bugs in invocation and options.
...
Add non-command-arguments.
Restore --quiet option.
2020-05-21 11:53:03 -07:00
Nathan Baker
393f5cee50
Rename "Tests" directory for consistency.
2020-05-21 10:39:08 -07:00
Nathan Baker
fa4a547f1f
Enforce Python 3.*.
2020-05-21 10:29:45 -07:00
Nathan Baker
17bad90dc4
Start fixing tests.
2020-05-18 20:37:56 -07:00
Nathan Baker
d0e80b810b
Handle multiple additions of same argument.
...
APBS and PROPKA add the same arguments.
2020-05-18 16:29:39 -07:00
Nathan Baker
747333d4ac
Merge branch 'master' into nathan/delint
2020-05-18 16:27:58 -07:00
Nathan Baker
e9a88bee4b
Restore Tests/runtest.py.
...
Also update README.md to document the existence of multiple tests.
2020-05-18 16:23:39 -07:00
Nathan Baker
10efc3c7f9
De-lint propka/atom.py
...
Other changes are a result of Atom use in other files.
2020-05-17 17:08:38 -07:00
Nathan Baker
303aaae25a
Partial pylint de-linting of bonds.py.
2020-05-16 21:11:09 -07:00
Nathan Baker
22d83ae29e
Fix some pylint issues for propka.atom.
...
Only implemented fixes that do not change functonality.
Avoided changing numbers of arguments, numbers of attribute,
variable/function names, etc.
2020-05-16 21:10:55 -07:00
Nathan Baker
61c200c3f4
Remove duplicate tests.
2020-05-16 18:18:15 -07:00
Nathan Baker
6ae2908c4b
Merge pull request #29 from Electrostatics/master
...
* Replace PROPKA pickle with JSON.
* Replace optionparser with argparse.
* Fix tests for Ubuntu WSL.
* Fix verbosity/logging.
2020-05-16 17:09:52 -07:00
Nathan Baker
0fbaa6711f
Update minor version number.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424575807
2020-05-16 17:06:28 -07:00
Nathan Baker
6c67ef152c
Remove unnecessary OptionParser statements.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424418158 .
2020-05-16 16:58:19 -07:00
Nathan Baker
9cafb41e06
Document acceptable error in PROPKA tests.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424572620
2020-05-16 16:49:47 -07:00
Nathan Baker
cddda2f515
Fix verbosity/logging in PROPKA.
2020-05-14 19:02:11 -07:00
Nathan Baker
387d0a5664
Move argparse sub-command to group.
2020-05-12 14:27:46 -07:00
Nathan Baker
847004a2d6
Fix subparser syntax for argparse.
2020-05-12 13:51:44 -07:00
Nathan Baker
6ddc32c101
Add newline to end of __init__.py.
2020-05-12 13:51:24 -07:00
Nathan Baker
ae7e8b6430
Replace optparse with argparse.
...
Optparse is deprecated. Argparse will allow tighter integration with
PDB2PQR/APBS.
2020-05-12 13:13:28 -07:00
Nathan Baker
aeb1663d7b
Add code to clean up files after test.
2020-05-10 19:19:37 -07:00
Nathan Baker
997298f1f0
Loosen error tolerance in test.
...
The PROPKA31 tests fail on Windows 10 Ubuntu 18.04 Windows Subsystem
Linux without any changes. The relative error is less than 1e-3. This
commit chnages the behavior to a test of absolute agreement to a test of
relative error less than 1e-3.
2020-05-10 18:29:51 -07:00
Nathan Baker
4fa015a54e
Fix typo in PROPKA test.
...
Fail() -> fail().
2020-05-10 18:18:36 -07:00
Nathan Baker
2bd7e70249
Load data from JSON rather than pickle.
...
Increases platform independence.
2020-05-05 11:55:45 -07:00
Nathan Baker
726d6aa412
Update __init__.py.
...
Fix __all__ list and add docstring to point users to PROPKA website when
used as module.
2020-05-05 11:38:36 -07:00