Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of PROPKA input #100

Merged
merged 6 commits into from
Nov 29, 2020
Merged

Conversation

IAlibay
Copy link
Contributor

@IAlibay IAlibay commented Nov 17, 2020

Fixes #99

Changes made in this PR:

  • Removed reading & writing of PROPKA inputs

To do:

  • Check line coverage for missed sections
  • Test that docs build properly

@codecov
Copy link

codecov bot commented Nov 17, 2020

Codecov Report

Merging #100 (14d2f4f) into master (9dfd87a) will increase coverage by 0.86%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   72.41%   73.27%   +0.86%     
==========================================
  Files          24       24              
  Lines        4143     3982     -161     
==========================================
- Hits         3000     2918      -82     
+ Misses       1143     1064      -79     
Impacted Files Coverage Δ
propka/atom.py 77.12% <ø> (+2.23%) ⬆️
propka/conformation_container.py 84.95% <ø> (+1.40%) ⬆️
propka/group.py 77.22% <ø> (+0.84%) ⬆️
propka/input.py 96.15% <ø> (+33.50%) ⬆️
propka/lib.py 68.21% <0.00%> (-4.82%) ⬇️
propka/output.py 56.61% <ø> (-5.11%) ⬇️
propka/run.py 70.96% <ø> (+2.39%) ⬆️
propka/molecular_container.py 92.59% <100.00%> (+1.28%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9dfd87a...3ca6747. Read the comment docs.

:class:`~propka.molecular_container.MolecularContainer` object.

>>> read_molecule_file('test.pdb', mol_container,
stream=string_io_object)
<propka.molecular_container.MolecularContainer at 0x7f6e0c8f2310>


.. versionchanged:: 3.4.0
PROPKA input files (extension: `.propka_input`) are no longer read.
"""
input_path = Path(filename)
mol_container.name = input_path.stem
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing inputs by extension is probably not really necessary anymore. Thoughts about just removing this logic and just assuming everything being passed in a PDB file?

(that being said, removing the need for filename is going to break the API again...)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just leave it as-is for now.

@IAlibay IAlibay marked this pull request as ready for review November 18, 2020 01:15
.. versionchanged:: 3.4.0
:meth:`make_input_line` and :meth:`get_input_parameters` have been
removed as reading/writing PROPKA input is no longer supported.
"""

def __init__(self, line=None):
"""Initialize Atom object.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group_label, group_model_pka and group_model_pka_set are now unused and don't need to be initialized.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, had forgotten about those, fixed in 3ca6747 :)

@sobolevnrm sobolevnrm merged commit f3bbd80 into jensengroup:master Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing a propka input to propka3 no longer works
3 participants