Skip to content

Commit

Permalink
- Reflect the current behavior of the unit test correctly
Browse files Browse the repository at this point in the history
- Reduce tolerance of plot_boundaries from 2d to 1d, since it is a line plot
  • Loading branch information
Philipp Jurasic committed Sep 28, 2024
1 parent bb0c004 commit 4a474c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified tests/baseline/test_plot_boundaries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
from desc.utils import isalmostequal
from desc.vmec import VMECIO

tol_1d = 7.8
tol_2d = 15
tol_3d = 15
tol_1d = 0.5 # 7.8
tol_2d = 0.5 # 15
tol_3d = 0.5 # 15


@pytest.mark.unit
Expand Down Expand Up @@ -507,7 +507,7 @@ def test_plot_boundary_surface(self):
return fig

@pytest.mark.unit
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=tol_2d)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=tol_1d)
def test_plot_boundaries(self):
"""Test plotting boundaries."""
eq1 = get("SOLOVEV")
Expand Down

0 comments on commit 4a474c3

Please sign in to comment.