Skip to content

[BUG] Dpdata failed to process abacus/md (the develop branch of abacus) #949

@ZhouXY-PKU

Description

@ZhouXY-PKU

Bug summary

The energy keyword in running_md.log have changed from final_etot_is to #TOTAL ENERGY# in the develop branch of abacus, so dpdata/abacus/md.py cannot process the log files successfully.

dpdata Version

1.0.1

Input Files, Running Commands, Error Log, etc.

sys = dpdata.LabeledSystem("../",fmt="abacus/pw/md")

File "/home/dpdata/abacus/md.py", line 188, in get_frame
energy = get_energy(outlines, ndump, dump_freq)
File "/home/dpdata/abacus/md.py", line 150, in get_energy
assert ndump == len(energy), (
AssertionError: Number of total energies in running_md.log = 0. Number of frames in MD_dump = 20. Please check.

Steps to Reproduce

Just use a running_md.log of develop branch of abacus to reproduce.

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions