-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add prepare_segmented function #373
Conversation
Reviewer's Guide by SourceryThis pull request introduces the File-Level Changes
Tips
|
Here's the code health analysis summary for commits Analysis Summary
|
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.
Hey @tovrstra - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 8 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 8 issues found
- 🟡 Complexity: 2 issues found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
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.
It seems clear to me.
Thanks for checking Paul! Let's see if merging works from a phone... |
@tovrstra This API change breaks the |
Sorry @FarnazH , I should have caught this. |
This addresses another task from #191: conversion to segmented basis functions is now also implemented through in the
prepare
andconvert
modules. In addition to reorganizing how this was done previously, the FCHK format now also makes use of this feature. (For FCHK, SP shells are left in place, but other types of generalized contractions are converted.) This also addresses the last point in #256 .This is API breaking because the
MolecularBasis.get_segmented
method was removed and replaced by functions in separate modules. This improves overall modularity: separating utilities from the core data structures. Related unit tests were also moved for consistency.Summary by Sourcery
This pull request introduces the
prepare_segmented
function to convert generalized contractions to segmented ones, enhancing modularity by moving this functionality to separate modules. It also updates various format modules to utilize this new feature and refactors related tests for consistency.prepare_segmented
function to convert generalized contractions to segmented ones in theprepare
module.convert_to_segmented
function in theconvert
module for converting basis sets with generalized contractions to single contractions.MolecularBasis.get_segmented
method and replaced it with functions in separate modules to improve modularity.prepare_dump
functions in various format modules (Molden, Molekel, WFN, WFX) to include calls toprepare_segmented
.prepare_segmented
andconvert_to_segmented
functions, ensuring consistency and modularity.prepare_segmented
function intest_prepare.py
.convert_to_segmented
function intest_convert.py
.MolecularBasis.get_segmented
method and replace them with the new functions.