@@ -53,6 +53,11 @@ def test_binstats_no_outgrid():
5353 npt .assert_allclose (temp_grid .mean (), 4227489 )
5454
5555
56+ # TODO(GMT>=6.5.0): Remove the xfail marker for the upstream bug fixed in GMT 6.5.0.
57+ @pytest .mark .xfail (
58+ condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
59+ reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8243" ,
60+ )
5661def test_binstats_quantile ():
5762 """
5863 Test binstats quantile statistic functionality.
@@ -71,11 +76,6 @@ def test_binstats_quantile():
7176 assert temp_grid .gmt .registration is GridRegistration .GRIDLINE
7277 assert temp_grid .dtype == "float32"
7378 npt .assert_allclose (temp_grid .max (), 15047685 )
74- if Version (__gmt_version__ ) > Version ("6.4.0" ):
75- npt .assert_allclose (temp_grid .min (), 53 )
76- npt .assert_allclose (temp_grid .median (), 543664.5 )
77- npt .assert_allclose (temp_grid .mean (), 1661363.6 )
78- else : # TODO(GMT>=6.5.0): Remove if-condition with different min/median/mean values
79- npt .assert_allclose (temp_grid .min (), 0 )
80- npt .assert_allclose (temp_grid .median (), 330700.0 )
81- npt .assert_allclose (temp_grid .mean (), 1459889.1 )
79+ npt .assert_allclose (temp_grid .min (), 53 )
80+ npt .assert_allclose (temp_grid .median (), 543664.5 )
81+ npt .assert_allclose (temp_grid .mean (), 1661363.6 )
0 commit comments