Skip to content

Commit

Permalink
modify test_displacement
Browse files Browse the repository at this point in the history
  • Loading branch information
teruya7 committed Sep 19, 2024
1 parent 29be195 commit 86bbf54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_displacements.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ def test_plot_site_displacements_ytos(self):

@custom_mpl_image_compare(filename="v_Cd_0_disp_ellipsoid_plot.png")
def test_calc_displacements_ellipsoid_ellipsoid(self):
defect_entry = core.DefectEntry.from_json(f"{data_dir}/v_Cd_defect_entry.json.gz")
defect_entry = DefectEntry.from_json(f"{data_dir}/v_Cd_defect_entry.json.gz")
return_tuple = calc_displacements_ellipsoid(defect_entry, plot_ellipsoid=True)
# return fig object
return return_tuple[3]

@custom_mpl_image_compare(filename="v_Cd_0_disp_anisotropy_plot.png")
def test_calc_displacements_ellipsoid_anisotropy(self):
defect_entry = core.DefectEntry.from_json(f"{data_dir}/v_Cd_defect_entry.json.gz")
defect_entry = DefectEntry.from_json(f"{data_dir}/v_Cd_defect_entry.json.gz")
return_tuple = calc_displacements_ellipsoid(defect_entry, plot_anisotropy=True)
# return fig object
return return_tuple[3]

0 comments on commit 86bbf54

Please sign in to comment.