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

Fix UTs destroyed by pymatgen's update #1471

Merged
merged 5 commits into from
Feb 29, 2024
Merged

Conversation

Yi-FanLi
Copy link
Collaborator

@Yi-FanLi Yi-FanLi commented Feb 29, 2024

There are 2 changes in pymatgen which destroy the previous unittests:

  1. Improve CIF checking, support for isotopes, and correct handling of new VASP 6.4.2 POSCAR format incl. slashes in header materialsproject/pymatgen#3542
    Previously we set the type of DummySpecies to "Type", which is forbidden by pymatgen through this PR. Here we replace "Type" with "X".

  2. Remove deprecated (to|from|as|get)_string methods materialsproject/pymatgen#3561
    The functions from_string and get_string have been replaced with from_str and get_str. We should keep up to date with these changes.

@Yi-FanLi Yi-FanLi changed the base branch from master to devel February 29, 2024 17:12
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 49.51%. Comparing base (7392650) to head (b0f192f).

Files Patch % Lines
dpgen/data/tools/bcc.py 0.00% 1 Missing ⚠️
dpgen/data/tools/diamond.py 0.00% 1 Missing ⚠️
dpgen/data/tools/hcp.py 0.00% 1 Missing ⚠️
dpgen/data/tools/sc.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1471      +/-   ##
==========================================
+ Coverage   49.42%   49.51%   +0.09%     
==========================================
  Files          83       83              
  Lines       14817    14820       +3     
==========================================
+ Hits         7323     7338      +15     
+ Misses       7494     7482      -12     

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

@Yi-FanLi Yi-FanLi changed the title Test PR: test if UTs are crashed Fix UTs destroyed by pymatgen's update Feb 29, 2024
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.

[BUG] dpgen init_bulk failed: ValueError(f"Can't parse Element or Species from {type(obj).__name__}: {obj}.")
2 participants