[FIX] Default to using scipy v1.8.0+ API by matthewfeickert · Pull Request #646 · PythonOT/POT
matthewfeickert
changed the title
[MNT] Default to using scipy v1.8.0+ API
[FIX] Default to using scipy v1.8.0+ API
* As most users will be installing the latest scipy release when they install
POT, default to using the scipy v1.8.0+ API and catch the ModuleNotFoundError in
the rare case in which scipy v1.7.3 or older is required, such as Python 3.7.
* Always import from the scipy.optimize.{_}linesearch API as the newest version
of scipy that supports Python 3.7 is v1.7.3 which does not support
'from scipy.optimize import scalar_search_armijo', just as scipy v1.14.0+ does
not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters