Skip to content

Commit 18dcfb6

Browse files
kavanasetschaume
andauthored
Fix compatibility with new pymatgen (#206)
* Update utils.py * work on pyproject reqs * rm strict extra --------- Co-authored-by: Patrick Huck <[email protected]>
1 parent 8094e20 commit 18dcfb6

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

pymatgen/analysis/defects/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from monty.dev import deprecated
1919
from monty.json import MSONable
2020
from numpy.linalg import norm
21-
from pymatgen.analysis.local_env import cn_opt_params
21+
from pymatgen.analysis.local_env import CN_OPT_PARAMS
2222
from pymatgen.analysis.structure_matcher import StructureMatcher
2323
from pymatgen.core import Structure
2424
from pymatgen.core.periodic_table import Element, get_el_sp
@@ -60,7 +60,7 @@
6060
kumagai_to_V = 1.809512739e2 # = Electron charge * 1e10 / VacuumPermittivity Constant
6161

6262
motif_cn_op = {}
63-
for cn, di in cn_opt_params.items():
63+
for cn, di in CN_OPT_PARAMS.items():
6464
for motif, li in di.items():
6565
motif_cn_op[motif] = {"cn": int(cn), "optype": li[0]}
6666
motif_cn_op[motif]["params"] = deepcopy(li[1]) if len(li) > 1 else None

pyproject.toml

+2-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616
"Topic :: Scientific/Engineering",
1717
]
1818
dependencies = [
19-
"pymatgen>=2024.5.1",
19+
"pymatgen>=2024.10.22",
2020
"scikit-image>=0.19.3",
2121
"numpy<2",
2222
"mp-pyrho>=0.4.4",
@@ -36,15 +36,7 @@ docs = [
3636
"jupyter-book>=0.13.1",
3737
]
3838
optional = ["pydefect", "dscribe>=2.0.0", "numba"]
39-
40-
strict = [
41-
"pymatgen==2024.5.1",
42-
"dscribe==2.1.1",
43-
"mp-pyrho==0.4.4",
44-
"pydefect==0.9.4",
45-
]
46-
47-
tests = ["pytest==8.2.1", "pytest-cov==5.0.0", "nbmake==1.5.3"]
39+
tests = ["pytest>=8.2.1", "pytest-cov>=5.0.0", "nbmake>=1.5.3"]
4840

4941
[tool.setuptools.dynamic]
5042
readme = { file = ["README.md"] }

0 commit comments

Comments
 (0)