Evgeni Burovski
Evgeni Burovski
PSA note for projects using scipy-doctest: upgrade to scipy-doctest==1.5.1, update your doctests to use the new repr, and your doctesting will work on both numpy 2.2 and older versions.
> If you want to try extending this support to other libraries which have a scipy namespace ... JAX in addition right now Thanks for the suggestion @lucascolley ! This...
> I assume it's float32 vs float64? Which one is the result from convolve? There is at least one issue which looks like f32/f64 tolerance and there's a bunch of...
OK, reworked to mimic `scipy.special`: all delegation logic sits in a `_support_alternative_backends.py` file, and our original `_signaltools.py` is intact, as requested in https://github.com/scipy/scipy/pull/20772#discussion_r1613465621 Have to admit I don't much like...
> One next step that would be useful is to merge get_array_special_func from special and this new dispatch_xp, because they're doing the same thing in two different ways. Agreed it'd...
The CI "failure" is definitely unrelated: ``` _____________ TestDifferentialEvolutionSolver.test_strategy_fn _______________ [gw0] win32 -- Python 3.12.3 C:\hostedtoolcache\windows\Python\3.12.3\x64\python.exe Test passed but took too long to run: Duration 1.89733810000007s > 1.0s ```
Indeed, scipy.special is on a "more uniform" side as far as scipy submodules go :-). > It didn't look like we'd have out in the standard Indeed. One more reason...
> OK, what functions would be enough to think about? convolve, fftconvolve, and convolve2d are representative enough? These happily fit into the `special` framework, as they only dispatch on two...
Long-term, would be great to cover https://docs.cupy.dev/en/stable/reference/comparison.html. jax.scipy is smaller, but still sizeable: https://jax.readthedocs.io/en/latest/jax.scipy.html#module-jax.scipy.spatial.transform A non-zero fraction of at least the cupyx list can be done in what you call...
With the last commit, `$ python dev.py test -t scipy/signal/tests/test_signaltools.py -v -b all` passes at least locally, so hopefully the balance is restored to the force :-).