Skip to content

Commit

Permalink
Minor tests updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Apr 10, 2024
1 parent bbba1fc commit eec8cc0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
Binary file modified docs/Cu2SiSe3_v_Cu_0_eigenvalue_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/data/remote_baseline_plots/CdTe_v_cd_m2_eigenvalue_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,8 @@ def test_extrinsic_substitution_parsing_and_freysoldt_and_kumagai(self):
print([str(warn.message) for warn in w])
assert any(
f"Estimated error in the Freysoldt (FNV) charge correction for defect {F_O_1_ent.name} is "
f"0.000 eV (i.e. which is greater than the `error_tolerance`: 0.000 eV). You may want to "
f"check the accuracy of the correction by plotting the site potential differences (using "
f"3.54e-04 eV (i.e. which is greater than the `error_tolerance`: 1.00e-05 eV). You may want "
f"to check the accuracy of the correction by plotting the site potential differences (using "
f"`defect_entry.get_freysoldt_correction()` with `plot=True`). Large errors are often due "
f"to unstable or shallow defect charge states (which can't be accurately modelled with "
f"the supercell approach; see "
Expand Down
1 change: 1 addition & 0 deletions tests/test_chemical_potentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def test_to_csv(self):
reloaded_cpa = chemical_potentials.CompetingPhasesAnalyzer(self.stable_system)
reloaded_cpa.from_csv("competing_phases.csv")
reloaded_cpa_data = reloaded_cpa._get_and_sort_formation_energy_data()
print(pd.DataFrame(stable_cpa_data), pd.DataFrame(reloaded_cpa_data)) # for debugging
assert pd.DataFrame(stable_cpa_data).equals(pd.DataFrame(reloaded_cpa_data))

# check chem limits the same:
Expand Down

0 comments on commit eec8cc0

Please sign in to comment.