Skip to content

adapt abacus/md interface to MD output without stress calculation.#301

Merged
AnguseZhang merged 4 commits into
deepmodeling:develfrom
Liu-RX:devel
Jun 11, 2022
Merged

adapt abacus/md interface to MD output without stress calculation.#301
AnguseZhang merged 4 commits into
deepmodeling:develfrom
Liu-RX:devel

Conversation

@Liu-RX

@Liu-RX Liu-RX commented Jun 8, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-commenter

codecov-commenter commented Jun 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #301 (a5e42a7) into devel (31552db) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            devel     #301      +/-   ##
==========================================
+ Coverage   81.56%   81.66%   +0.09%     
==========================================
  Files          62       62              
  Lines        5257     5269      +12     
==========================================
+ Hits         4288     4303      +15     
+ Misses        969      966       -3     
Impacted Files Coverage Δ
dpdata/abacus/md.py 99.01% <100.00%> (+3.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31552db...a5e42a7. Read the comment docs.

@wanghan-iapcm wanghan-iapcm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please provide UTs for both calc_stress == True/False cases? Thanks

@Liu-RX

Liu-RX commented Jun 9, 2022

Copy link
Copy Markdown
Contributor Author

Could you please provide UTs for both calc_stress == True/False cases? Thanks

The existing UT corresponds to cal_stress == True. A new UT for cal_stress == False has already been added in the new commit.

@AnguseZhang AnguseZhang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions which do not relate to the correctness.

Comment thread dpdata/abacus/md.py Outdated
Comment thread tests/test_abacus_md.py Outdated
Comment thread dpdata/abacus/md.py
calc_stress = True
else:
assert("POSITIONS" in dumplines[6] and "FORCE" in dumplines[6])
nframes_dump = -1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is useless.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Jinzhe. I think the line is helpful in recognizing the keywords are in the right place of the file, so I kept the lines.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you delete nframes_dump, it will still be defined in the successive conditional lines. But I think keeping this line is also okay.

@AnguseZhang AnguseZhang merged commit 2bbfc9b into deepmodeling:devel Jun 11, 2022
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.

5 participants