Merged
Conversation
Contributor
Author
|
Hi all, here's the updated docstrings. I have also refactored some of the old code, e.g. unified how we compute moments of fitted density, get converged dm/mf, optimized some of the initial guesses. Also added |
Closed
Contributor
liam-o-marsh
left a comment
There was a problem hiding this comment.
Some details in a bunch of places, but some of them are for me to check.
qstack/spahm/compute_spahm.py
Outdated
Comment on lines
22
to
23
| - e (numpy ndarray): 1D array (nao,) of orbital eigenvalues. | ||
| - v (numpy ndarray): 2D array (nao, nao) of MO coefficients. |
qstack/spahm/rho/dmb_rep_atom.py
Outdated
| - symmetrization_function (callable): Function for symmetrizing coefficients. | ||
| Args: | ||
| c (numpy ndarray): Density fitting coefficients (1D). | ||
| mol (pyscf Mole): Molecule object. |
Contributor
There was a problem hiding this comment.
The inline Args and Returns should be indented further
Contributor
There was a problem hiding this comment.
(also I now remember there's another function that returns a callable without documenting it somewhere, probably around the regression part's kernel utils)
Closed
YAY-C
approved these changes
Nov 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update all the docstrings and refactor some old code