Skip to content

Commit

Permalink
MNT: Adjust image thresholds
Browse files Browse the repository at this point in the history
This allows the tests to pass properly on a "minimum" config on my mac M2.
  • Loading branch information
dopplershift committed Nov 14, 2023
1 parent 4295c95 commit dad58f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/plots/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def test_latlon():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.342)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.391)
@needs_cartopy
def test_declarative_barb_options():
"""Test making a contour plot."""
Expand Down Expand Up @@ -962,7 +962,7 @@ def test_declarative_arrow_changes():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.86)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.891)
@needs_cartopy
def test_declarative_barb_earth_relative():
"""Test making a contour plot."""
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def test_declarative_sfc_obs_full(ccrs, pandas_sfc):
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.355)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.522)
@needs_cartopy
def test_declarative_upa_obs():
"""Test making a full upperair observation plot."""
Expand Down Expand Up @@ -1557,7 +1557,7 @@ def test_declarative_upa_obs():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.473)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.518)
@needs_cartopy
def test_declarative_upa_obs_convert_barb_units():
"""Test making a full upperair observation plot with barbs converting units."""
Expand Down
2 changes: 1 addition & 1 deletion tests/plots/test_station_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def wind_plot():
return u, v, x, y


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.499)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.5)
def test_barb_projection(wind_plot, ccrs):
"""Test that barbs are properly projected (#598)."""
u, v, x, y = wind_plot
Expand Down

0 comments on commit dad58f0

Please sign in to comment.