Skip to content

Commit

Permalink
Update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Jun 11, 2024
1 parent 209e72e commit 42c54ad
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 19 deletions.
3 changes: 3 additions & 0 deletions doped/utils/symmetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
_get_unrelaxed_defect_structure,
)

warnings.filterwarnings("ignore", "dict interface") # ignore spglib warning from v2.4.1


def _set_spglib_warnings_env_var():
"""
Expand Down Expand Up @@ -1083,6 +1085,7 @@ def point_symmetry_from_defect(defect, symm_ops=None, symprec=0.01):
Returns:
str: Defect point symmetry.
"""
warnings.filterwarnings("ignore", "dict interface") # ignore spglib warning from v2.4.1
symm_dataset, _unique_sites = _get_symm_dataset_of_struc_with_all_equiv_sites(
defect.site.frac_coords, defect.structure, symm_ops=symm_ops, symprec=symprec
)
Expand Down
2 changes: 1 addition & 1 deletion examples/CdTe/CdTe_example_defect_dict.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/CdTe/CdTe_example_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/Sb2Si2Te6/Sb2Si2Te6_example_defect_dict.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/Sb2Si2Te6/Sb2Si2Te6_example_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/YTOS/YTOS_example_defect_dict.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/YTOS/YTOS_example_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/CdTe_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/N_diamond_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/Sb2Se3/Sb2Se3_O_example_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/Sb2Se3/defect/Sb2Se3_O_example_defect_dict.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/V2O5/V2O5_example_defect_dict.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/V2O5/V2O5_example_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/ZnS/ZnS_thermo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/agcu_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/cd_i_supercell_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/cu_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/lmno_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/ytos_defect_gen.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/ytos_defect_gen_supercell.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def test_V2O5_same_named_defects(self):
shutil.move(f"V2O5_test/{i}", f"V2O5_test/unrecognised_{i[-1]}")

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("error")
dp = DefectsParser("V2O5_test", dielectric=[4.186, 19.33, 17.49])
print([str(warning.message) for warning in w]) # for debugging
assert not w # no warnings
Expand Down

0 comments on commit 42c54ad

Please sign in to comment.