Skip to content

Commit f939c19

Browse files
authored
Merge pull request scipy#22296 from tylerjereddy/treddy_1.15.1_backports
MAINT: backports for 1.15.1
2 parents 9af1fcd + 609bb3c commit f939c19

File tree

7 files changed

+35
-10
lines changed

7 files changed

+35
-10
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
url = https://github.com/cobyqa/cobyqa.git
2525
[submodule "scipy/_lib/array_api_extra"]
2626
path = scipy/_lib/array_api_extra
27-
url = https://github.com/lucascolley/array-api-extra.git
27+
url = https://github.com/data-apis/array-api-extra.git
2828
# All submodules used as a Meson `subproject` are required to be under the
2929
# subprojects/ directory - see:
3030
# https://mesonbuild.com/Subprojects.html#why-must-all-subprojects-be-inside-a-single-directory

doc/source/release/1.15.1-notes.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,39 @@ SciPy 1.15.1 Release Notes
55
.. contents::
66

77
SciPy 1.15.1 is a bug-fix release with no new features
8-
compared to 1.15.0.
8+
compared to 1.15.0. Importantly, an issue with the
9+
import of `scipy.optimize` breaking other packages
10+
has been fixed.
911

1012

1113

1214
Authors
1315
=======
1416
* Name (commits)
17+
* Ralf Gommers (3)
18+
* Rohit Goswami (1)
19+
* Matt Haberland (2)
20+
* Tyler Reddy (7)
21+
* Daniel Schmitz (1)
22+
23+
A total of 5 people contributed to this release.
24+
People with a "+" by their names contributed a patch for the first time.
25+
This list of names is automatically generated, and may not be fully complete.
1526

1627

1728
Issues closed for 1.15.1
1829
------------------------
1930

31+
* `#22257 <https://github.com/scipy/scipy/issues/22257>`__: BUG: Importing scipy.optimize break highspy
32+
* `#22297 <https://github.com/scipy/scipy/issues/22297>`__: TST: TestDistributions.test_funcs[logcdf-methods10-x-Normal]...
2033

2134

2235
Pull requests for 1.15.1
2336
------------------------
37+
38+
* `#22235 <https://github.com/scipy/scipy/pull/22235>`__: REL, MAINT: prep for 1.15.1
39+
* `#22245 <https://github.com/scipy/scipy/pull/22245>`__: MAINT: fix url for array-api-extra git submodule
40+
* `#22270 <https://github.com/scipy/scipy/pull/22270>`__: BLD: fix some issues with undeclared internal build dependencies
41+
* `#22272 <https://github.com/scipy/scipy/pull/22272>`__: TST: fix thread safety issue in interpolate.bsplines memmap test
42+
* `#22276 <https://github.com/scipy/scipy/pull/22276>`__: TST: stats.Normal: bump tolerance on test of logcdf
43+
* `#22292 <https://github.com/scipy/scipy/pull/22292>`__: MAINT: Update highs subproject commit

scipy/interpolate/tests/test_bsplines.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import operator
33
import itertools
44
import math
5+
import threading
56

67
import numpy as np
78
from numpy.testing import suppress_warnings
@@ -658,11 +659,12 @@ def test_memmap(self, tmpdir):
658659

659660
expected = b(xx)
660661

661-
t_mm = np.memmap(
662-
str(tmpdir.join('t.dat')), mode='w+', dtype=b.t.dtype, shape=b.t.shape)
662+
tid = threading.get_native_id()
663+
t_mm = np.memmap(str(tmpdir.join(f't{tid}.dat')), mode='w+',
664+
dtype=b.t.dtype, shape=b.t.shape)
663665
t_mm[:] = b.t
664-
c_mm = np.memmap(
665-
str(tmpdir.join('c.dat')), mode='w+', dtype=b.c.dtype, shape=b.c.shape)
666+
c_mm = np.memmap(str(tmpdir.join(f'c{tid}.dat')), mode='w+',
667+
dtype=b.c.dtype, shape=b.c.shape)
666668
c_mm[:] = b.c
667669
b.t = t_mm
668670
b.c = c_mm

scipy/linalg/meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cython_linalg = custom_target('cython_linalg',
2828
install_tag: 'devel'
2929
)
3030
cython_blas_pxd = cython_linalg[2]
31+
cython_lapack_pxd = cython_linalg[3]
3132

3233
# pyx -> c, pyx -> cpp generators, depending on __init__.py here.
3334
linalg_init_cython_gen = generator(cython,
@@ -39,7 +40,7 @@ linalg_init_cython_gen = generator(cython,
3940
linalg_init_utils_cython_gen = generator(cython,
4041
arguments : cython_args,
4142
output : '@[email protected]',
42-
depends : [_cython_tree, __init__py, _cy_array_utils_pxd])
43+
depends : [_cython_tree, __init__py, _cy_array_utils_pxd, cython_lapack_pxd])
4344

4445
# pyx -> c, pyx -> cpp generators, depending on copied pxd files and init
4546
linalg_cython_gen = generator(cython,
@@ -104,7 +105,7 @@ py3.extension_module('_flapack',
104105

105106
# _decomp_interpolative
106107
py3.extension_module('_decomp_interpolative',
107-
linalg_init_cython_gen.process('_decomp_interpolative.pyx'),
108+
linalg_cython_gen.process('_decomp_interpolative.pyx'),
108109
c_args: cython_c_args,
109110
dependencies: np_dep,
110111
link_args: version_link_args,

scipy/spatial/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _spatial_pxd = [
88
spt_cython_gen = generator(cython,
99
arguments : cython_args,
1010
output : '@[email protected]',
11-
depends : [_cython_tree, _spatial_pxd, _lib_pxd])
11+
depends : [_cython_tree, _spatial_pxd, _lib_pxd, cython_lapack_pxd])
1212

1313
qhull_src = [
1414
'qhull_src/src/geom2_r.c',

scipy/stats/tests/test_continuous.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ def check_dist_func(dist, fname, arg, result_shape, methods):
426426
# can only expect about half of machine precision for optimization
427427
# because math
428428
tol_override = {'atol': 1e-6}
429+
elif fname in {'logcdf'}: # gh-22276
430+
tol_override = {'rtol': 2e-7}
429431

430432
if dist._overrides(f'_{fname}_formula'):
431433
methods.add('formula')

subprojects/highs

0 commit comments

Comments
 (0)