Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable loading of virials for 'qe/cp/traj' if prefix.str file is present #583

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

rashidrafeek
Copy link

Currently the virials are not read when reading a QE cp.x MD. But the stresses are printed in the prefix.str by default. This PR adds support to load virials if this file is present.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (e948661) 82.88% compared to head (dbe6699) 82.86%.

Files Patch % Lines
dpdata/plugins/qe.py 60.00% 2 Missing ⚠️
dpdata/qe/traj.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #583      +/-   ##
==========================================
- Coverage   82.88%   82.86%   -0.03%     
==========================================
  Files          74       74              
  Lines        6608     6617       +9     
==========================================
+ Hits         5477     5483       +6     
- Misses       1131     1134       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@njzjz njzjz left a comment

Choose a reason for hiding this comment

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

Could you add a test for virial?

class TestCPTRAJProps:

@njzjz njzjz added the qe label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants