Repository navigation
✨ PwOutput: Parse ecutwfc and ecutrho from stdout as fallback - #157
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
BaseStdoutParserrather thanPwStdoutParserbecause the same lines are emitted by every plane-wave QE code (pw.x,cp.x,neb.xper image, ...) — placement matchesvolumeandwall_time. Post-processing codes that lack the lines see a silent no-op miss. The two parameter Specs are wrapped inCoalesce(xml, stdout), with the stdout arm applying Ry → eV viaCONSTANTS.ry_to_evso units match the XML-derived Hartree → eV path.