Repository navigation
✨ PwOutput: add wall_time and volume outputs - #154
Merged
Merged
Conversation
Both are parsed from stdout:
- `wall_time` — final `PWSCF : ... s CPU ... s WALL` line; already collected
by `BaseStdoutParser` as `wall_time_seconds`, now exposed via a Spec with
`Unit("second")`.
- `volume` — `unit-cell volume = ... (a.u.)^3` (and the `new unit-cell volume =
... a.u.^3 (...)` form printed by vc-relax). `BaseStdoutParser` now records
the last match as `volume_bohr3`; the Spec converts bohr³ → ų via
`CONSTANTS.bohr_to_ang**3` and tags `Unit("angstrom**3")`.
The XML schema does not include the cell volume, so stdout is the only source;
for vc-relax taking the last match yields the final relaxed volume rather than
the initial one.
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.
Both are parsed from stdout:
wall_time— finalPWSCF : ... s CPU ... s WALLline; already collected byBaseStdoutParseraswall_time_seconds, now exposed via a Spec withUnit("second").volume—unit-cell volume = ... (a.u.)^3(and thenew unit-cell volume = ... a.u.^3 (...)form printed by vc-relax).BaseStdoutParsernow records the last match asvolume_bohr3; the Spec converts bohr³ → ų viaCONSTANTS.bohr_to_ang**3and tagsUnit("angstrom**3").The XML schema does not include the cell volume, so stdout is the only source; for vc-relax taking the last match yields the final relaxed volume rather than the initial one.