Commit 5c9c70a
authored
[FIX] Default to using scipy v1.8.0+ API (#646)
* 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.1 parent 14bbebf commit 5c9c70a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments