You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / testing / _dask_wrap

function

scipy._lib.array_api_extra.testing:_dask_wrap

source: /scipy/_lib/array_api_extra/testing.py:382

Signature

def _dask_wrap(func: Callable[P, T], n: int) → Callable[P, T]

Summary

Wrap func to raise if it attempts to call dask.compute more than n times.

Extended Summary

After the function returns, materialize the graph in order to re-raise exceptions.

Aliases

  • scipy.differentiate.xpx.testing._dask_wrap