Update DeltaSCF Hessian and simplify FR tests - #13
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved critical validation and unsupported-group issues, along with lifecycle and validation concerns, block approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (3)
What changed in this PR
Updates the Delta-SCF SGM ROHF Hessian and simplifies FR workflows and benchmarks.
Changes:
- Adapts the ROHF Hessian-vector implementation from PySCF PR #3448.
- Refactors FR validation, logging, occupation handling, and documentation.
- Simplifies FR tests and adds the HCHO Rydberg-triplet benchmark.
| File | Summary |
|---|---|
src/nest/deltascf/tests/test_sgm.py |
Cleans up SGM tests. |
src/nest/deltascf/tests/test_fr.py |
Simplifies FR tests and adds the HCHO benchmark. |
src/nest/deltascf/sgm.py |
Updates the ROHF Hessian. Moderate (3 votes): parameter validation must remain unconditional. Nit (1 vote): add arbitrary Hessian-vector finite-difference and symmetry regression coverage. |
src/nest/deltascf/fr.py |
Refactors FR lifecycle and validation. Critical (3 votes): sanity checks must not be gated by WARN verbosity. Critical (1 vote): restore explicit Abelian-group validation or support multidimensional irreps. Moderate (1 vote): the weakref MOM implementation still retains a bound getter cycle. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+129
to
+130
| if self.mol.symmetry and self.mol.groupname in ('Dooh', 'Coov', 'SO3'): | ||
| raise NotImplementedError('FR supports Abelian point groups; select an Abelian subgroup') |
Comment on lines
+147
to
+148
| if self.verbose >= logger.WARN: | ||
| self.check_sanity() |
Comment on lines
+325
to
+326
| if self.verbose >= logger.WARN: | ||
| self.check_sanity() |
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 the SGM ROHF Hessian using PySCF PR #3448, remove FR reference cycles, and tidy sanity checks, logging, and documentation. Simplify FR tests and add the HCHO Rydberg triplet benchmark against Q-Chem and the existing SGM reference.
Validation: all 5 SGM/FR tests passed.