Skip to content

Fix grid alignment padding mismatch with gpu4pyscf#63

Merged
awvwgk merged 3 commits into
microsoft:mainfrom
CW-Huang:chinwei/fix-grid-alignment-padding
May 9, 2026
Merged

Fix grid alignment padding mismatch with gpu4pyscf#63
awvwgk merged 3 commits into
microsoft:mainfrom
CW-Huang:chinwei/fix-grid-alignment-padding

Conversation

@CW-Huang
Copy link
Copy Markdown
Contributor

@CW-Huang CW-Huang commented May 8, 2026

Set grids.alignment=1 in _build_grids_unsorted to prevent PySCF/gpu4pyscf from appending zero-weight padding points that cause size mismatches in Skala's feature generation pipeline.

  • Force alignment=1 in _build_grids_unsorted with debug log when overriding
  • Add ValueError check in generate_features when grid sizes don't match
  • Add negative test confirming ValueError fires without the fix

CW-Huang and others added 2 commits May 8, 2026 21:24
Set grids.alignment=1 in _build_grids_unsorted to prevent PySCF/gpu4pyscf
from appending zero-weight padding points that cause size mismatches in
Skala's feature generation pipeline.

- Force alignment=1 in _build_grids_unsorted with debug log when overriding
- Add ValueError check in generate_features when grid sizes don't match
- Add negative test confirming ValueError fires without the fix

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@CW-Huang CW-Huang force-pushed the chinwei/fix-grid-alignment-padding branch from bdb4280 to ba560f7 Compare May 8, 2026 21:13
@awvwgk awvwgk merged commit 123a7ce into microsoft:main May 9, 2026
24 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.

2 participants