Closed orionarcher closed 2 years ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Hello @orioncohen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
solvation_analysis/analysis_library.py
:Line 556:5: E303 too many blank lines (2) Line 635:9: E731 do not assign a lambda expression, use a def Line 641:9: E722 do not use bare 'except' Line 880:17: E131 continuation line unaligned for hanging indent
solvation_analysis/tests/test_analysis_library.py
:New changes implement better documentation for the Residence and Networking classes. Citations, better descriptions of the methods, and general cleanup is still needed.
This looks awesome @orioncohen, ping me if / when you want review
Thanks! I'm stoked about the features here. I am leveraging some clever pandas calls to use solvation_data
as a sparse adjacency matrix.
Once I have testing in place and clean up the docs I'll request a review.
Hey @hmacdope, this is nearing completion so if you have some time, would love a review!
One point to consider:
Previously, all analysis_library
classes were automatically instantiated in Solution
. This was possible because Speciation, Pairing, and Coordination are quite cheap. In contrast, Networking and Residence are quite expensive. I decided to make Speciation, Pairing, and Coordination automatically be added to Solution
by default but gave the user the option to customize what analysis modules are instantiated with the analysis_classes
kwarg. Curious to hear feedback on that implementation. It was the best way I could think to strike a balance between flexibility and usability.
More documentation and citations are needed but overall I'm happy with how this is shaping up!
Thanks for the review @hmacdope! I believe I have addressed all the points you made. I'm going to make sure the documentation looks good then merge.
Description
This PR adds an analysis module to calculate residence times and an analysis module to calculate solute-solvent networks.
Todos
Notable points that this PR has either accomplished or will accomplish.
diluent_composition
analysis toPairing
classkwarg
toSolution
from_solution
class method to all analysis classesStatus
The PR is nearly finished, the main outstanding issues are improved documentation, citations and tutorials.