Skip to content

fix(abacus): use --config flag for phonopy 4.1.0 load mode compatibility#120

Merged
kevinwenminion merged 2 commits into
deepmodeling:mainfrom
Letian88:main
Jul 7, 2026
Merged

fix(abacus): use --config flag for phonopy 4.1.0 load mode compatibility#120
kevinwenminion merged 2 commits into
deepmodeling:mainfrom
Letian88:main

Conversation

@Letian88

@Letian88 Letian88 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

phonopy 4.1.0 ignores positional conf file arguments when in 'load mode' (triggered by phonopy_disp.yaml). This caused band.yaml/mesh.yaml to not be generated during the Post step for ABACUS phonon and gruneisen properties.

Fix: pass band.conf explicitly via --config flag, which phonopy 4.1.0 correctly reads as a configuration file even in load mode.

Tested with Cu FCC (ABACUS DFT, 2x2x2 supercell):

  • phonon: band.yaml + band.dat + mesh.yaml generated successfully
  • gruneisen: FORCE_CONSTANTS + mesh.yaml (3 volumes) generated successfully

phonopy 4.1.0 ignores positional conf file arguments when in 'load mode'
(triggered by phonopy_disp.yaml). This caused band.yaml/mesh.yaml to not
be generated during the Post step for ABACUS phonon and gruneisen properties.

Fix: pass band.conf explicitly via --config flag, which phonopy 4.1.0
correctly reads as a configuration file even in load mode.

Tested with Cu FCC (ABACUS DFT, 2x2x2 supercell):
- phonon: band.yaml + band.dat + mesh.yaml generated successfully
- gruneisen: FORCE_CONSTANTS + mesh.yaml (3 volumes) generated successfully
Align unit tests with the phonopy 4.1.0 load-mode fix that passes
band.conf via --config instead of a positional argument.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.94%. Comparing base (0b4bdba) to head (cbac2a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #120   +/-   ##
=======================================
  Coverage   71.94%   71.94%           
=======================================
  Files         103      103           
  Lines       21279    21279           
=======================================
  Hits        15310    15310           
  Misses       5969     5969           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kevinwenminion kevinwenminion merged commit bca347c into deepmodeling:main Jul 7, 2026
3 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