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

code and unit test for salt bridge tool #121

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

Conversation

brittyscience
Copy link
Contributor

A fair warning, this branch failed commit, I told it to ignore the pre commit hooks so I can get the code pushed to git hub. This tool is still a work in progress.

@brittyscience brittyscience self-assigned this Mar 27, 2024
@SamCox822 SamCox822 changed the title added some rough code draft for salt bridge tool [WIP] added some rough code draft for salt bridge tool Mar 28, 2024
@SamCox822 SamCox822 marked this pull request as draft March 28, 2024 16:28
Copy link
Contributor

@qcampbel qcampbel left a comment

Choose a reason for hiding this comment

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

Just some more feedback for your salt bridge tool. Let me know if you have questions!

@brittyscience brittyscience changed the title [WIP] added some rough code draft for salt bridge tool added some rough code draft for salt bridge tool Jun 10, 2024
@brittyscience brittyscience marked this pull request as ready for review June 10, 2024 15:09
@qcampbel
Copy link
Contributor

this branch has some conflicts -- can you resolve it? (see "Resolve conflicts" below). I think it's from merging main after we organize tools in alphabetical order.

@brittyscience brittyscience changed the title added some rough code draft for salt bridge tool code and unit test for salt bridge tool Jun 11, 2024
@brittyscience
Copy link
Contributor Author

I initially thought it was a conflict due to alphabetic order, fixed that and passed the local pytest. It seems like there is a conflict due to these errors. I do not think I have touched those files, so I am uncertain how to resolve this yet. Ill look into this and see what I can do.

FAILED tests/test_preprocess/test_packing.py::test_packmol_validate_input_missing_info - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_small_molecule_pdb - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_packmol_pdb_download_only - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_packmol_download_only_once - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_packmol_sm_download_called - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_packmol_download_only[small_molecule0] - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value
FAILED tests/test_preprocess/test_pdb_tools.py::test_packmol_download_only[small_molecule1] - UnboundLocalError: cannot access local variable 'mol_name' where it is not associated with a value

@brittyscience
Copy link
Contributor Author

It is ready and fixed after some polishing ups. Can someone please review it so I can see my very first tool officially joining the club? 🥇

@SamCox822
Copy link
Contributor

@brittyscience is this ready for review?

tests/test_analysis/test_saltbridge_tools.py Outdated Show resolved Hide resolved
tests/test_analysis/test_saltbridge_tools.py Outdated Show resolved Hide resolved
self.salt_bridges = [] # stores paired salt bridges
self.traj = None

def find_salt_bridges(
Copy link
Contributor

Choose a reason for hiding this comment

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

this function might be easier to test if you break it up into some sub-functions

tests/test_analysis/test_saltbridge_tools.py Outdated Show resolved Hide resolved
@qcampbel qcampbel requested a review from SamCox822 January 29, 2025 20:18
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.

4 participants