-
Notifications
You must be signed in to change notification settings - Fork 33
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
pymatgen API update breaks DefectsGenerator #68
Comments
Hi @alikhamze! Thanks for such a detailed – it's very much appreciated! Yes I noticed some changes in the Anyway I've added a fix for the minor typing-related test failures due to other dependencies, and just released the latest version of Please reopen this issue if this doesn't solve it 😃 |
Just to confirm @alikhamze, there was a delay in the new version being released over the weekend due to a memory issue caused by a |
Thanks so much for the very quick response! I've upgraded to the new release. 🙌 |
Hello,
I am using Python 3.11, doped 2.4.1, and pymatgen 2024.5.1.
I was following the Defects Generation tutorial, but instantiating a DefectsGenerator object fails.
This occurs due to a breaking change in pymatgen's API (not sure when it was introduced), which updated the
Lattice.get_points_in_sphere()
function to return aTuple
instead of aList
. When thedoped.utils.supercells.get_min_image_distance()
function is called, the.sort()
called in Line 80 ofsupercells.py
fails becauseTuple
has nosort()
function.Potentials fixes:
doped.utils.supercells.get_min_image_distance()
to useLattice.get_points_in_sphere_old()
, but there's no guarantee for how long pymatgen will retain the old version of the function..sort()
in line 80 ofsupercells.py
to usesorted()
instead.Lattice.get_points_in_sphere()
to a list usinglist()
.Thanks!
The text was updated successfully, but these errors were encountered: