Exposing ODEintWarning in scipy.integrate

"Jake Bowhay" <[email protected]> Tue, 12 Sep 2023 20:24:45 -0000
Newsgroups gmane.comp.python.scientific.devel
Message-ID <[email protected]>
Hi all

It was reported in [1] that the only way to import ODEintWarning is through the deprecated scipy.integrate.odepack namespace and not scipy.integrate. This is annoying as this leads to a deprecation warning. Other custom warnings used in SciPy, such as IntegrationWarning, as importable from their respective namespace so it seems logical that we do the same for ODEintWarning to allow for warning filtering etc. One potential argument against this is that ODEintWarning arises from the legacy odeint interface so normally we wouldn't make any modifications. However, since this is just a custom warning I don't think there is really any maintenance burden to worry about. Please feel free to join in the discussion on my pr [2].

Regards
Jake

[1] https://github.com/scipy/scipy/issues/17771
[2] https://github.com/scipy/scipy/pull/19224
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]