From a5efdc7637438fb7862d7fb8d7118b647e2b5628 Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Wed, 15 May 2019 16:28:19 -0700 Subject: [PATCH 1/2] MAINT: backport / prep for 1.3.0 * set version to 1.3.0 unreleased (remove the rc2) * update release notes with a backward incompatible change entry for scipy.optimize as requested in gh-10160; remove note about 1.3.0 not being released yet (now imminent pending release commit) --- doc/release/1.3.0-notes.rst | 11 +++++++++-- setup.py | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/release/1.3.0-notes.rst b/doc/release/1.3.0-notes.rst index 0778627049b9..31c33c4d8a0d 100644 --- a/doc/release/1.3.0-notes.rst +++ b/doc/release/1.3.0-notes.rst @@ -2,8 +2,6 @@ SciPy 1.3.0 Release Notes ========================== -.. note:: Scipy 1.3.0 is not released yet! - .. contents:: SciPy 1.3.0 is the culmination of 5 months of hard work. It contains @@ -204,6 +202,15 @@ can be used to track the new import locations for the relocated functions. For ``pinv``, ``pinv2``, and ``pinvh``, the default cutoff values are changed for consistency (see the docs for the actual values). +`scipy.optimize` changes +--------------------------- + +The default method for ``linprog`` is now ``'interior-point'``. The method's +robustness and speed come at a cost: solutions may not be accurate to +machine precision or correspond with a vertex of the polytope defined +by the constraints. To revert to the original simplex method, +include the argument ``method='simplex'``. + `scipy.stats` changes --------------------- diff --git a/setup.py b/setup.py index 6fceff14e2fe..d1f5ff05bbf0 100755 --- a/setup.py +++ b/setup.py @@ -56,8 +56,8 @@ MAJOR = 1 MINOR = 3 MICRO = 0 -ISRELEASED = True -VERSION = '%d.%d.%drc2' % (MAJOR, MINOR, MICRO) +ISRELEASED = False +VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # Return the git revision as a string From e1cfc5b9c12db2df67559432533e429579cb3d2c Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 15 May 2019 12:53:24 +0200 Subject: [PATCH 2/2] TST: fix test issue for stats.pearsonr Fixes this: > assert_allclose(p, 0.0) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E Mismatch: 100% E Max absolute difference: 1.34157586e-08 E Max relative difference: inf E x: array(1.341576e-08) E y: array(0.) Testing for "close to zero" should always have atol > 0 --- scipy/stats/tests/test_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipy/stats/tests/test_stats.py b/scipy/stats/tests/test_stats.py index 68129c39ed74..067ea2c0dd20 100644 --- a/scipy/stats/tests/test_stats.py +++ b/scipy/stats/tests/test_stats.py @@ -369,7 +369,7 @@ def test_more_basic_examples(self): # The expected r and p are exact. assert_allclose(r, -1.0) - assert_allclose(p, 0.0) + assert_allclose(p, 0.0, atol=1e-7) def test_unequal_lengths(self): x = [1, 2, 3]