Skip to content

Add SF dispersion gradients and improve geometry scanners - #12

Merged
wtpeter merged 4 commits into
NonDFT:mainfrom
wtpeter:feat/dftd
Sep 22, 2026
Merged

wtpeter merged 4 commits into
NonDFT:mainfrom
wtpeter:feat/dftd

Conversation

@wtpeter

@wtpeter wtpeter commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Add reference D3/D4 corrections to SF gradients, project cached amplitudes during geometry scans, and unify RO/U SF-TDA and SF-TDDFT entry points. Include dispersion and geomeTRIC examples, dependencies, and CI import checks.

Validation: 36 related tests passed; the geomeTRIC example converged; 48 SF-TDA calculations confirmed equivalent method/function entry points for U/RO references with and without symmetry. Ruff and diff checks passed.

@wtpeter
wtpeter requested a balanced review from Copilot September 22, 2026 09:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved moderate findings affect API compatibility, symmetry-adapted references, validation, geometry projection, cached amplitudes, and displaced-geometry test coverage.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)

Comment thread src/nest/sftda/uhf_sf.py
Comment on lines +486 to +489
if self.verbose >= logger.WARN:
self.check_sanity()
if self.verbose >= logger.INFO:
self.dump_flags()
Comment thread src/nest/sftda/uhf_sf.py
Comment on lines +500 to +503
if self.xy is None:
x0 = self.init_guess()
else: # Reuse the previous amplitudes, including in geometry scans.
x0 = np.asarray([x.ravel() for x, y in self.xy])
@wtpeter
wtpeter merged commit ad7f47a into NonDFT:main Sep 22, 2026
1 check passed
@wtpeter
wtpeter deleted the feat/dftd branch September 25, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants