Skip to content

Adjust tolerance in compute_lambda_thc_test.py test#1208

Merged
mhucka merged 1 commit intomainfrom
adjust-thc-test-tolerance
Feb 24, 2026
Merged

Adjust tolerance in compute_lambda_thc_test.py test#1208
mhucka merged 1 commit intomainfrom
adjust-thc-test-tolerance

Conversation

@mhucka
Copy link
Contributor

@mhucka mhucka commented Feb 23, 2026

After updating dependency versions, one of the tests in compute_lambda_thc_test.py fails. This seems to be due to some numerical drift introduced by these version updates:

  • pyscf updated from 2.9.0 to 2.12.1
  • numpy updated from 1.26.4 to 2.2.6

The test involves a small electronic structure calculation followed by a BFGS optimization (perform_bfgs_opt=True with bfgs_maxiter=10 in kpoint_thc_via_isdf). Even small changes in the floating-point operations from newer numpy/scipy versions or updates to pyscf's integral evaluations can cause these sorts of minor deviations in the final output after optimization iterations.

After updating dependency versions, one of the tests in
`compute_lambda_thc_test.py` fails. This seems to be due to some
numerical drift introduced by these version updates:

   * `pyscf` updated from 2.9.0 to 2.12.1
   * `numpy` updated from 1.26.4 to 2.2.6

The test involves a small electronic structure calculation followed by a
BFGS optimization (perform_bfgs_opt=True with bfgs_maxiter=10 in
kpoint_thc_via_isdf). Even small changes in the floating-point
operations from newer numpy/scipy versions or updates to pyscf's
integral evaluations can cause these sorts of minor deviations in the
final output after optimization iterations.
@mhucka mhucka added this pull request to the merge queue Feb 23, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 23, 2026
@mhucka mhucka added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit 45f97fc Feb 24, 2026
26 checks passed
@mhucka mhucka deleted the adjust-thc-test-tolerance branch February 24, 2026 02:46
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.

3 participants