MCPcopy Index your code
hub / github.com/pydata/xarray / test_quantile_out_of_bounds

Method test_quantile_out_of_bounds

xarray/tests/test_variable.py:1991–1999  ·  view source on GitHub ↗
(self, q, compute_backend)

Source from the content-addressed store, hash-verified

1989 @pytest.mark.parametrize("compute_backend", ["numbagg", None], indirect=True)
1990 @pytest.mark.parametrize("q", [-0.1, 1.1, [2], [0.25, 2]])
1991 def test_quantile_out_of_bounds(self, q, compute_backend):
1992 v = Variable(["x", "y"], self.d)
1993
1994 # escape special characters
1995 with pytest.raises(
1996 ValueError,
1997 match=r"(Q|q)uantiles must be in the range \[0, 1\]",
1998 ):
1999 v.quantile(q, dim="x")
2000
2001 @requires_dask
2002 @requires_bottleneck

Callers

nothing calls this directly

Calls 2

quantileMethod · 0.95
VariableClass · 0.90

Tested by

no test coverage detected