@@ -184,7 +184,7 @@ def test_large_systems(self):
184
184
assert "CIF" not in elnes .tags
185
185
assert "TARGET" not in elnes .tags
186
186
187
- def test_postfeffset (self ):
187
+ def test_post_feffset (self ):
188
188
self .mp_xanes .write_input (f"{ self .tmp_path } /xanes_3" )
189
189
feff_dict_input = FEFFDictSet .from_directory (f"{ self .tmp_path } /xanes_3" )
190
190
assert feff_dict_input .tags == Tags .from_file (f"{ self .tmp_path } /xanes_3/feff.inp" )
@@ -223,7 +223,7 @@ def test_postfeffset(self):
223
223
struct_reci = Structure .from_file (f"{ self .tmp_path } /Dup_reci/Co2O2.cif" )
224
224
assert struct_orig == struct_reci
225
225
226
- def test_post_distdiff (self ):
226
+ def test_post_dist_diff (self ):
227
227
feff_dict_input = FEFFDictSet .from_directory (f"{ TEST_FILES_DIR } /feff_dist_test" )
228
228
assert feff_dict_input .tags == Tags .from_file (f"{ TEST_FILES_DIR } /feff_dist_test/feff.inp" )
229
229
assert str (feff_dict_input .header ()) == str (Header .from_file (f"{ TEST_FILES_DIR } /feff_dist_test/HEADER" ))
@@ -259,3 +259,10 @@ def test_big_radius(self):
259
259
},
260
260
)
261
261
assert str (dict_set ) is not None
262
+
263
+ def test_cluster_index (self ):
264
+ # https://github.com/materialsproject/pymatgen/pull/3256
265
+ cif_file = f"{ TEST_FILES_DIR } /Fe3O4.cif"
266
+ structure = CifParser (cif_file ).get_structures ()[0 ]
267
+ for idx in range (len (structure .species )):
268
+ assert Atoms (structure , idx , 3 ).cluster
0 commit comments