Skip to content

✨ PwOutput: Parse ecutwfc and ecutrho from stdout as fallback - #157

Merged
mbercx merged 1 commit into
aiidateam:mainfrom
mbercx:new/stdout-cutoffs
May 16, 2026
Merged

mbercx merged 1 commit into
aiidateam:mainfrom
mbercx:new/stdout-cutoffs

Conversation

@mbercx

@mbercx mbercx commented May 16, 2026

Copy link
Copy Markdown
Member

Another parameter that we currently only parse from the XML is the energy cutoffs. This value is often used for convergence studies, where the user will likely run a calculation with different parameters in the same directory. Again, this will likely mean the XML of each calculation is no longer available.

The two regexes go on BaseStdoutParser rather than PwStdoutParser because the same lines are emitted by every plane-wave QE code (pw.x, cp.x, neb.x per image, ...) — placement matches volume and wall_time. Post-processing codes that lack the lines see a silent no-op miss. The two parameter Specs are wrapped in Coalesce(xml, stdout), with the stdout arm applying Ry → eV via CONSTANTS.ry_to_ev so units match the XML-derived Hartree → eV path.

Another parameter that we currently only parse from the XML is the energy
cutoffs. This value is often used for convergence studies, where the user will
likely run a calculation with different parameters in the same directory.
Again, this will likely mean the XML of each calculation is no longer
available.

The two regexes go on `BaseStdoutParser` rather than `PwStdoutParser` because
the same lines are emitted by every plane-wave QE code (`pw.x`, `cp.x`, `neb.x`
per image, ...) — placement matches `volume` and `wall_time`. Post-processing
codes that lack the lines see a silent no-op miss. The two parameter Specs are
wrapped in `Coalesce(xml, stdout)`, with the stdout arm applying Ry → eV via
`CONSTANTS.ry_to_ev` so units match the XML-derived Hartree → eV path.
@codecov-commenter

codecov-commenter commented May 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.54%. Comparing base (d0f8124) to head (53de014).
⚠️ Report is 133 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
- Coverage   89.77%   88.54%   -1.23%     
==========================================
  Files          11       23      +12     
  Lines         489     1100     +611     
==========================================
+ Hits          439      974     +535     
- Misses         50      126      +76     

☔ View full report in Codecov by Sentry.
📢 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.

@mbercx
mbercx merged commit f5edffc into aiidateam:main May 16, 2026
5 checks passed
@mbercx
mbercx deleted the new/stdout-cutoffs branch May 16, 2026 17:47
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