This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / testing / _CountingDaskScheduler

class

scipy._external.array_api_extra.testing:_CountingDaskScheduler

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/testing.py:480

Signature

class _CountingDaskScheduler(max_count: int, msg: str) → None

Members

Summary

Dask scheduler that counts how many times dask.compute is called.

Extended Summary

If the number of times exceeds 'max_count', it raises an error. This is a wrapper around Dask's own 'synchronous' scheduler.

Parameters

max_count : int

Maximum number of allowed calls to dask.compute.

msg : str

Assertion to raise when the count exceeds max_count.

Aliases

  • scipy.differentiate.xpx.testing._CountingDaskScheduler