Skip to content

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

Merged
wanghan-iapcm merged 3 commits into
deepmodeling:develfrom
Liu-RX:devel
Apr 20, 2022
Merged

adapt dpdata interface to ABACUS 2.2.0, fixed issue#268 about qe/pw/scf#270
wanghan-iapcm merged 3 commits into
deepmodeling:develfrom
Liu-RX:devel

Conversation

@Liu-RX

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

Copy link
Copy Markdown
Contributor

No description provided.

@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.

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?

Comment thread dpdata/abacus/md.py Outdated
#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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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