Nathan Baker
1d43b46ddc
Enable package-based CI
...
Enable continuous integration testing using pytest.
2020-06-18 08:30:02 -07:00
Nathan Baker
0cb470fbdb
Merge pull request #59 from Electrostatics/nathan/tempfile
...
Make PROPKA input file generation optional
2020-06-03 18:36:27 -07:00
Nathan Baker
9126e3059f
Fix PROPKA output naming.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/59#discussion_r434360267
2020-06-03 18:34:12 -07:00
Nathan Baker
5d8e271420
Merge branch 'nathan/import' into nathan/tempfile
2020-06-03 17:51:16 -07:00
Nathan Baker
df028e445b
Merge pull request #50 from Electrostatics/nathan/import
...
Resolve cyclic import issues
2020-06-03 17:50:30 -07:00
Nathan Baker
7085271ad5
Simplify with .writable() method.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/50#discussion_r434349737
2020-06-03 17:49:19 -07:00
Nathan Baker
9b59d924b2
Make PROPKA input file generation optional.
...
Fixes https://github.com/jensengroup/propka-3.1/issues/51 .
2020-05-31 10:26:56 -07:00
Nathan Baker
1d17cb05ed
Remove TODO for refactoring.
...
Done already.
2020-05-30 13:15:45 -07:00
Nathan Baker
52554d905a
Remove TODO statements for refactoring.
...
Already done.
2020-05-30 13:12:44 -07:00
Nathan Baker
84846aad8c
Resolve cyclic import problem.
...
Fixes https://github.com/jensengroup/propka-3.1/issues/49
Moved I/O into higher level of of code; should make
issue https://github.com/jensengroup/propka-3.1/issues/51
easier to resolve
2020-05-30 12:01:30 -07:00
Nathan Baker
b597a6f257
Remove cyclic import based on I/O in pdb.py.
...
Partially addresses https://github.com/jensengroup/propka-3.1/issues/49
2020-05-30 10:00:31 -07:00
Nathan Baker
397d5e10aa
Remove cyclic import based on atom.py
...
Partially addresses https://github.com/jensengroup/propka-3.1/issues/49
2020-05-30 09:26:13 -07:00
Nathan Baker
461edda3b2
Break propka.calculations into parts.
...
Broken into three files to simplify import analysis:
* `calculations.py` - distance calculations and simple math
* `energy.py` - energy calculations
* `hydrogens.py` - hydrogen geometry calculations
Working towards addressing https://github.com/jensengroup/propka-3.1/issues/49
2020-05-30 08:45:39 -07:00
Nathan Baker
dde0d67ea5
Merge pull request #40 from Electrostatics/nathan/delint
...
De-lint PROPKA
2020-05-30 08:14:45 -07:00
Nathan Baker
d7147799d8
Python formatting is annoying.
...
I sometimes miss C -- but only with output formatting. C++ cout marks
some decline of civilization, I think...
Addresses https://github.com/jensengroup/propka-3.1/pull/40#discussion_r432313434
2020-05-29 20:55:32 -07:00
Nathan Baker
a716c89a36
Remove unused argument from Atom() constructor.
2020-05-29 20:49:47 -07:00
Nathan Baker
5010d9fa14
Merge branch 'nathan/strings' into nathan/delint
2020-05-29 20:41:53 -07:00
Nathan Baker
83a7099d79
Fix my formatting mistakes.
...
Python formatting makes me miss K&R C.
2020-05-29 20:37:47 -07:00
Nathan Baker
b54190ef27
Fix complicated string formatting.
...
PEP8 be damned! https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds
Addresses https://github.com/jensengroup/propka-3.1/pull/40#discussion_r432302025
2020-05-29 20:08:41 -07:00
Nathan Baker
7bd12c725e
Merge remote-tracking branch 'upstream/master' into nathan/strings
2020-05-29 20:06:57 -07:00
Nathan Baker
91570cbf68
Merge branch 'master' into nathan/delint
2020-05-28 20:35:27 -07:00
Nathan Baker
87347a7d60
Modernize print statements with str.format()
2020-05-28 20:31:03 -07:00
Nathan Baker
ba67f5149d
Replace old-style printf with str.format
2020-05-28 16:10:48 -07:00
Nathan Baker
3266521d31
Replace old formatting with new str.format()
2020-05-27 20:55:44 -07:00
Nathan Baker
6e7c188dbd
Update string formatting to modern version.
...
Focuses only on complex formatting.
2020-05-27 16:26:52 -07:00
Nathan Baker
5916a80d56
Merge pull request #47 from Electrostatics/nathan/fix-run
...
Add missing option to lib.loadOptions()
2020-05-27 08:38:58 -07:00
Nathan Baker
33493cc4d2
Remove unnecessary args testing.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/47#discussion_r431224753
2020-05-27 08:25:46 -07:00
Nathan Baker
557ab19312
Replace complex old-style format with new format strings.
2020-05-27 08:19:36 -07:00
Nathan Baker
2305615fbe
Add line breaks to format strings.
...
Addresses https://github.com/jensengroup/propka-3.1/issues/44#issuecomment-634233970
2020-05-27 08:01:30 -07:00
Nathan Baker
959f978abb
Add default argument to loadOptions().
...
Fixes https://github.com/jensengroup/propka-3.1/issues/46
2020-05-27 07:39:41 -07:00
Nathan Baker
46ae3d8251
Add __main__.py
...
Makes it easier to run (and test) PROPKA as a module.
2020-05-27 07:38:34 -07:00
Nathan Baker
bcccd89ca4
Add str.format() to atom.py.
...
Addresses https://github.com/jensengroup/propka-3.1/issues/44
2020-05-26 16:17:50 -07:00
Nathan Baker
36bea44a4d
Clean up line breaks in tests.
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:35:54 -07:00
Nathan Baker
2bb6cf6293
Clean up line breaks in version.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:33:34 -07:00
Nathan Baker
c2f362a101
Clean up line endings for vector_algebra.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:30:58 -07:00
Nathan Baker
d965d95fba
Clean up line breaks in run.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:26:18 -07:00
Nathan Baker
0ac800333d
Clean up line breaks in protonate.py.
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:25:15 -07:00
Nathan Baker
a6016ed827
Clean up line breaks for pdb.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:22:28 -07:00
Nathan Baker
baed55e79a
Clean up line breaks in parameters.py
...
See https://github.com/jensengroup/propka-3.1/issues/43
2020-05-25 20:12:47 -07:00
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
01385d956f
Merge branch 'master' of github.com:jensengroup/propka-3.1
2020-05-25 10:01:49 -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
c2de394cb8
Merge pull request #41 from jensengroup/update-readme-with-doi
...
Add DOIs to references
2020-05-23 13:05:38 -07:00
Nathan Baker
a00617e7a5
Convert "DOI" to lower case
2020-05-23 13:04:41 -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
a647b80ae3
Add DOIs to references
...
Make life easier for people.
2020-05-23 11:47:00 -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