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) → NoneMembers
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: intMaximum number of allowed calls to
dask.compute.msg: strAssertion to raise when the count exceeds
max_count.
Aliases
scipy.differentiate.xpx.testing._CountingDaskScheduler