Skip to content

Commit f5a32a2

Browse files
committed
Update displacements tests plots
1 parent fa928da commit f5a32a2

12 files changed

+14
-0
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

tests/test_displacements.py

+14
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,20 @@ def test_plot_site_displacements(self):
260260
separated_by_direction=False, use_plotly=False
261261
)
262262

263+
@custom_mpl_image_compare(filename="v_Cd_0_disp_proj_plot_relaxed_dists.png")
264+
def test_plot_site_displacements_proj_relaxed_dists(self):
265+
# Vacancy, displacement separated by direction:
266+
return self.v_Cd_0_defect_entry.plot_site_displacements(
267+
separated_by_direction=True, use_plotly=False, relaxed_distances=True
268+
)
269+
270+
@custom_mpl_image_compare(filename="v_Cd_0_disp_plot_relaxed_dists.png")
271+
def test_plot_site_displacements_relaxed_dists(self):
272+
# Vacancy, total displacement
273+
return self.v_Cd_0_defect_entry.plot_site_displacements(
274+
separated_by_direction=False, use_plotly=False, relaxed_distances=True
275+
)
276+
263277
@custom_mpl_image_compare(filename="YTOS_Int_F_-1_site_displacements.png")
264278
def test_plot_site_displacements_ytos(self):
265279
# Interstitial, total displacement

0 commit comments

Comments
 (0)