Skip to content

Commit aa78632

Browse files
committed
updated lobster_tests with recent pymatgen changes
1 parent 1459100 commit aa78632

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

atomate/vasp/firetasks/tests/test_lobster_tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_jsonfile(self):
111111
with open("task_lobster.json") as f:
112112
load_dict = json.load(f)
113113
self.assertEqual(load_dict["formula_pretty"], "K2Sn2O3")
114-
self.assertListEqual(load_dict["output"]["chargespilling"], [0.008, 0.008])
114+
self.assertListEqual(load_dict["output"]["charge_spilling"], [0.008, 0.008])
115115

116116
def test_mongodb(self):
117117
try:
@@ -128,7 +128,7 @@ def test_mongodb(self):
128128
coll = self.get_task_collection("lobster")
129129
load_dict = coll.find_one({"formula_pretty": "K2Sn2O3"})
130130
self.assertEqual(load_dict["formula_pretty"], "K2Sn2O3")
131-
self.assertListEqual(load_dict["output"]["chargespilling"], [0.008, 0.008])
131+
self.assertListEqual(load_dict["output"]["charge_spilling"], [0.008, 0.008])
132132
self.assertNotIn("lobster_icohplist", load_dict)
133133

134134
def test_mongodb_more_files(self):
@@ -155,7 +155,7 @@ def test_mongodb_more_files(self):
155155
coll = self.get_task_collection("lobster")
156156
load_dict = coll.find_one({"formula_pretty": "K2Sn2O3"})
157157
self.assertEqual(load_dict["formula_pretty"], "K2Sn2O3")
158-
self.assertListEqual(load_dict["output"]["chargespilling"], [0.008, 0.008])
158+
self.assertListEqual(load_dict["output"]["charge_spilling"], [0.008, 0.008])
159159
db = self.get_task_database()
160160
gfs = gridfs.GridFS(db, "lobster_files")
161161
results = gfs.find({})
@@ -172,7 +172,7 @@ def test_jsonfile_si(self):
172172
with open("task_lobster.json") as f:
173173
load_dict = json.load(f)
174174
self.assertEqual(load_dict["formula_pretty"], "Si")
175-
self.assertListEqual(load_dict["output"]["chargespilling"], [0.0147, 0.0147])
175+
self.assertListEqual(load_dict["output"]["charge_spilling"], [0.0147, 0.0147])
176176

177177

178178
class TestRunLobster(AtomateTest):

requirements-ci.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
pymatgen==2023.3.10
2+
custodian==2023.3.10
3+
boto3==1.17.97
14
Flask==2.1.3
25
coverage==5.5
36
moto==3.1.18
47
pytest-cov==2.12.1
5-
pytest==6.2.4
8+
pytest==6.2.4

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
custodian==2022.5.26
1+
pymatgen==2023.3.10
2+
custodian==2023.3.10
23
FireWorks==2.0.3
34
maggma==0.48.1
45
monty==2022.9.9
@@ -9,8 +10,7 @@ paramiko==2.11.0
910
pydash==5.1.0
1011
pymatgen-analysis-diffusion==2022.7.21
1112
pymatgen-analysis-defects==2022.9.14
12-
pymatgen==2022.9.8
1313
pymongo==4.2.0
1414
ruamel.yaml==0.17.21
1515
scipy==1.9.1
16-
tqdm==4.64.1
16+
tqdm==4.64.1

0 commit comments

Comments
 (0)