MCPcopy
hub / github.com/pydata/xarray / test_lazy_int_bins_error

Function test_lazy_int_bins_error

xarray/tests/test_groupby.py:3274–3279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3272
3273@requires_dask
3274def test_lazy_int_bins_error() -> None:
3275 import dask.array
3276
3277 with pytest.raises(ValueError, match="Bin edges must be provided"):
3278 with raise_if_dask_computes():
3279 _ = BinGrouper(bins=4).factorize(DataArray(dask.array.arange(3)))
3280
3281
3282def test_time_grouping_seasons_specified() -> None:

Callers

nothing calls this directly

Calls 5

raise_if_dask_computesFunction · 0.90
BinGrouperClass · 0.90
DataArrayClass · 0.90
arangeMethod · 0.80
factorizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…