{ } Raw JSON

bundles / scipy 1.18.0 / scipy / _external / array_api_extra / testing / _dask_wrap

function

scipy._external.array_api_extra.testing:_dask_wrap

source: /scipy/_external/array_api_extra/testing.py:483

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