Skip to content

Commit

Permalink
Fix ExtractData in src/ConvergenceTestWorkflow/actions.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Nov 2, 2023
1 parent 6dca952 commit 85c0f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConvergenceTestWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function (::ExtractData)(file)
preamble = tryparse(Preamble, str)
energies = collect(eachconvergedenergy(str))
if !isnothing(preamble) && !isempty(energies)
return preamble.ecutwfc * u"Ry" => last(energies) * u"Ry" # volume, energy
return preamble.ecutwfc * u"Ry" => last(energies).total * u"Ry" # volume, energy
else
throw(DataExtractionFailed("no data found in file $file."))
end
Expand Down

0 comments on commit 85c0f08

Please sign in to comment.