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

adapt dpdata interface to ABACUS 2.2.0, fixed issue#268 about qe/pw/scf #270

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

Liu-RX
Copy link
Contributor

@Liu-RX Liu-RX commented Apr 13, 2022

No description provided.

Copy link
Contributor

@wanghan-iapcm wanghan-iapcm left a comment

Choose a reason for hiding this comment

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

This PR includes two modifications. 1, adapt to abacus 2.2 and 2 fix issue #268 . Please raise two separate PRs next time for each modification.

Could you please also explain if your PR is backward compatible? Does it work with older abacus versions?

@@ -97,53 +99,47 @@ def get_coords_from_cif(ndump, dump_freq, atom_names, natoms, types, path_out, c
pos_file = os.path.join(path_out, "md_pos_%d.cif" %(dump_idx*dump_freq))
#print("dump_idx = %s" %dump_idx)
coords[dump_idx] = get_single_coord_from_cif(pos_file, atom_names, natoms, cell)
return coords
return coords'''
Copy link
Contributor

Choose a reason for hiding this comment

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

Please REMOVE the lines if you do not need them anymore. Do NOT use the doc string to comment out the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR includes two modifications. 1, adapt to abacus 2.2 and 2 fix issue #268 . Please raise two separate PRs next time for each modification.

Could you please also explain if your PR is backward compatible? Does it work with older abacus versions?

The PR is no longer backward compatible. I consulted my tutor Mohan and he asked me to do so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please REMOVE the lines if you do not need them anymore. Do NOT use the doc string to comment out the code.

Sorry for that. I will fix it.

@codecov-commenter
Copy link

Codecov Report

Merging #270 (deacb07) into devel (5c52fac) will decrease coverage by 0.27%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##            devel     #270      +/-   ##
==========================================
- Coverage   81.65%   81.38%   -0.28%     
==========================================
  Files          61       61              
  Lines        5185     5115      -70     
==========================================
- Hits         4234     4163      -71     
- Misses        951      952       +1     
Impacted Files Coverage Δ
dpdata/abacus/scf.py 87.66% <84.21%> (-0.54%) ⬇️
dpdata/abacus/md.py 95.55% <97.67%> (-0.95%) ⬇️
dpdata/plugins/abacus.py 100.00% <100.00%> (ø)
dpdata/qe/scf.py 94.11% <100.00%> (ø)
dpdata/format.py 88.23% <0.00%> (-1.42%) ⬇️
dpdata/periodic_table.py 94.44% <0.00%> (-0.91%) ⬇️
dpdata/plugins/pwmat.py 86.11% <0.00%> (-0.38%) ⬇️
dpdata/system.py 79.81% <0.00%> (-0.28%) ⬇️
dpdata/plugins/pymatgen.py 85.45% <0.00%> (-0.26%) ⬇️
dpdata/xyz/quip_gap_xyz.py 93.10% <0.00%> (-0.06%) ⬇️
... and 2 more

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 5c52fac...deacb07. Read the comment docs.

@Liu-RX Liu-RX changed the title adapt dpgen interface to ABACUS 2.2.0, fixed issue#268 about qe/pw/scf adapt dpdata interface to ABACUS 2.2.0, fixed issue#268 about qe/pw/scf Apr 15, 2022
@wanghan-iapcm wanghan-iapcm merged commit 8196d9e into deepmodeling:devel Apr 20, 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.

3 participants