8000 fix(tests): support muted checkpoints in GASSCF tests by yideng2025 · Pull Request #234 · pyscf/pyscf-forge · GitHub
[go: up one dir, main page]

Skip to content

fix(tests): support muted checkpoints in GASSCF tests - #234

Merged
MatthewRHermes merged 1 commit into
pyscf:masterfrom
yideng2025:fix/gasscf-muted-chkfile
Nov 9, 2026
Merged

MatthewRHermes merged 1 commit into
pyscf:masterfrom
yideng2025:fix/gasscf-muted-chkfile

Conversation

@yideng2025
@yideng2025 yideng2025 commented Nov 9, 2026 •
Copy link
Copy Markdown
Contributor

Fixes #232

Remove redundant SCF temporary checkpoint cleanup callbacks, relying on automatic cleanup as suggested. Give test_spin_physical_energy_boundaries an explicit temporary checkpoint path so it works when default checkpoint creation is disabled.

Validated test_gasscf.py and test_gasci.py with PySCF 2.13.1 and MUTE_CHKFILE set to both False and True: 153 tests and 2185 subtests passed in each run.

@yideng2025 yideng2025 changed the title Fixes #232 fix(tests): support muted checkpoints in GASSCF tests Nov 9, 2026
@yideng2025
Copy link
Copy Markdown
Contributor Author

The Python 3.9 build, flake8, and pycodestyle jobs fail during Python setup, before any tests or lint checks run:

The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.

The ubuntu-latest runner resolved to Ubuntu 26.04, so these failures are unrelated to the test changes in this PR. Ruff passed; the Python 3.10 and 3.12 jobs are still running their tests.

@MatthewRHermes
MatthewRHermes merged commit ef0f4d6 into pyscf:master Nov 9, 2026
3 of 18 checks passed
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.

test_gasscf.py fails when pyscf.scf.hf.MUTE_CHKFILE is True (_chkfile attribute missing)

2 participants

0