-
Notifications
You must be signed in to change notification settings - Fork 48
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
Make atom lines configurable in the input writer #253
Conversation
Few other things are also fixed in this PR: - Catch warning in test_input_orca_from_molden - Remove unused kwdocs from document_write_input - More code reuse between input writers (write_input_base instead of poulate_fields) - Conversion of atomic coordinates to angstroms is moved to program-specific code. The main motivation is to postpone such conversions as long as possible.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #253 +/- ##
=======================================
Coverage ? 95.64%
=======================================
Files ? 74
Lines ? 8268
Branches ? 1072
=======================================
Hits ? 7908
Misses ? 165
Partials ? 195 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tovrstra this is a big improvement. Thanks for the clear explanation.
- I think I am missing sth, but what is the purpose of
_field
(dictionary with fields) argument ofatom_line
? It is not used in the examples given, and I cannot think of how it would be used.
@FarnazH All should be fine. The failing test on (ubuntu-latest, 3.9) is a caching issue, which is fixed in the master branch. |
Quality Gate passedIssues Measures |
Here's the code health analysis summary for commits Analysis Summary
|
Given that this zomie-PR was already reviewed (long time ago) and all comments were addressed, I'm going to merge it. All tests and checks pass after merging the latest main branch back into this one. A few typos were fixed while preparing this merge. |
Fixes #192.
Few other things are also fixed in this PR:
test_input_orca_from_molden
kwdocs
fromdocument_write_input
write_input_base
instead ofpopulate_fields
)I considered a few ways to implement this, e.g. to pass in
atom_line
as a template string. Unfortunately, the.format
method is not as versatile as thef
prefix for string literals, which makes it impossible to get the same functionality with atom_line string templates. Hence,atom_line
is a callable.