scipy 1.16.1__cp312-cp312-macosx_12_0_arm64.whl → 1.16.2__cp312-cp312-macosx_12_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. scipy/.dylibs/libscipy_openblas.dylib +0 -0
  2. scipy/__config__.py +12 -12
  3. scipy/_cyutility.cpython-312-darwin.so +0 -0
  4. scipy/_lib/_ccallback_c.cpython-312-darwin.so +0 -0
  5. scipy/_lib/_test_deprecation_call.cpython-312-darwin.so +0 -0
  6. scipy/_lib/messagestream.cpython-312-darwin.so +0 -0
  7. scipy/cluster/_hierarchy.cpython-312-darwin.so +0 -0
  8. scipy/cluster/_optimal_leaf_ordering.cpython-312-darwin.so +0 -0
  9. scipy/cluster/_vq.cpython-312-darwin.so +0 -0
  10. scipy/fft/_pocketfft/pypocketfft.cpython-312-darwin.so +0 -0
  11. scipy/fftpack/convolve.cpython-312-darwin.so +0 -0
  12. scipy/integrate/_dop.cpython-312-darwin.so +0 -0
  13. scipy/integrate/_lsoda.cpython-312-darwin.so +0 -0
  14. scipy/integrate/_odepack.cpython-312-darwin.so +0 -0
  15. scipy/integrate/_test_odeint_banded.cpython-312-darwin.so +0 -0
  16. scipy/integrate/_vode.cpython-312-darwin.so +0 -0
  17. scipy/interpolate/_dfitpack.cpython-312-darwin.so +0 -0
  18. scipy/interpolate/_dierckx.cpython-312-darwin.so +0 -0
  19. scipy/interpolate/_interpnd.cpython-312-darwin.so +0 -0
  20. scipy/interpolate/_ppoly.cpython-312-darwin.so +0 -0
  21. scipy/interpolate/_rgi_cython.cpython-312-darwin.so +0 -0
  22. scipy/io/_fast_matrix_market/_fmm_core.cpython-312-darwin.so +0 -0
  23. scipy/io/_test_fortran.cpython-312-darwin.so +0 -0
  24. scipy/io/matlab/_mio5_utils.cpython-312-darwin.so +0 -0
  25. scipy/io/matlab/_mio_utils.cpython-312-darwin.so +0 -0
  26. scipy/io/matlab/_streams.cpython-312-darwin.so +0 -0
  27. scipy/linalg/_cythonized_array_utils.cpython-312-darwin.so +0 -0
  28. scipy/linalg/_decomp_interpolative.cpython-312-darwin.so +0 -0
  29. scipy/linalg/_decomp_lu_cython.cpython-312-darwin.so +0 -0
  30. scipy/linalg/_decomp_update.cpython-312-darwin.so +0 -0
  31. scipy/linalg/_fblas.cpython-312-darwin.so +0 -0
  32. scipy/linalg/_flapack.cpython-312-darwin.so +0 -0
  33. scipy/linalg/_matfuncs_expm.cpython-312-darwin.so +0 -0
  34. scipy/linalg/_matfuncs_schur_sqrtm.cpython-312-darwin.so +0 -0
  35. scipy/linalg/_matfuncs_sqrtm_triu.cpython-312-darwin.so +0 -0
  36. scipy/linalg/_solve_toeplitz.cpython-312-darwin.so +0 -0
  37. scipy/linalg/cython_blas.cpython-312-darwin.so +0 -0
  38. scipy/linalg/cython_lapack.cpython-312-darwin.so +0 -0
  39. scipy/linalg/tests/test_lapack.py +5 -1
  40. scipy/ndimage/_cytest.cpython-312-darwin.so +0 -0
  41. scipy/ndimage/_ni_label.cpython-312-darwin.so +0 -0
  42. scipy/odr/__odrpack.cpython-312-darwin.so +0 -0
  43. scipy/optimize/_bglu_dense.cpython-312-darwin.so +0 -0
  44. scipy/optimize/_highspy/_core.cpython-312-darwin.so +0 -0
  45. scipy/optimize/_highspy/_highs_options.cpython-312-darwin.so +0 -0
  46. scipy/optimize/_lbfgsb.cpython-312-darwin.so +0 -0
  47. scipy/optimize/_lbfgsb_py.py +2 -2
  48. scipy/optimize/_lsq/givens_elimination.cpython-312-darwin.so +0 -0
  49. scipy/optimize/_moduleTNC.cpython-312-darwin.so +0 -0
  50. scipy/optimize/_pava_pybind.cpython-312-darwin.so +0 -0
  51. scipy/optimize/_slsqp_py.py +5 -5
  52. scipy/optimize/_slsqplib.cpython-312-darwin.so +0 -0
  53. scipy/optimize/_trlib/_trlib.cpython-312-darwin.so +0 -0
  54. scipy/optimize/cython_optimize/_zeros.cpython-312-darwin.so +0 -0
  55. scipy/optimize/tests/test_optimize.py +9 -0
  56. scipy/signal/_peak_finding_utils.cpython-312-darwin.so +0 -0
  57. scipy/signal/_short_time_fft.py +74 -33
  58. scipy/signal/_sosfilt.cpython-312-darwin.so +0 -0
  59. scipy/signal/_spectral_py.py +2 -2
  60. scipy/signal/_upfirdn_apply.cpython-312-darwin.so +0 -0
  61. scipy/signal/tests/test_short_time_fft.py +9 -0
  62. scipy/signal/tests/test_signaltools.py +8 -2
  63. scipy/signal/tests/test_spectral.py +39 -1
  64. scipy/sparse/_csparsetools.cpython-312-darwin.so +0 -0
  65. scipy/sparse/csgraph/_flow.cpython-312-darwin.so +0 -0
  66. scipy/sparse/csgraph/_matching.cpython-312-darwin.so +0 -0
  67. scipy/sparse/csgraph/_min_spanning_tree.cpython-312-darwin.so +0 -0
  68. scipy/sparse/csgraph/_reordering.cpython-312-darwin.so +0 -0
  69. scipy/sparse/csgraph/_shortest_path.cpython-312-darwin.so +0 -0
  70. scipy/sparse/csgraph/_tools.cpython-312-darwin.so +0 -0
  71. scipy/sparse/csgraph/_traversal.cpython-312-darwin.so +0 -0
  72. scipy/sparse/linalg/_dsolve/_superlu.cpython-312-darwin.so +0 -0
  73. scipy/sparse/linalg/_eigen/arpack/_arpack.cpython-312-darwin.so +0 -0
  74. scipy/sparse/linalg/_propack/_cpropack.cpython-312-darwin.so +0 -0
  75. scipy/sparse/linalg/_propack/_dpropack.cpython-312-darwin.so +0 -0
  76. scipy/sparse/linalg/_propack/_spropack.cpython-312-darwin.so +0 -0
  77. scipy/sparse/linalg/_propack/_zpropack.cpython-312-darwin.so +0 -0
  78. scipy/spatial/_ckdtree.cpython-312-darwin.so +0 -0
  79. scipy/spatial/_distance_pybind.cpython-312-darwin.so +0 -0
  80. scipy/spatial/_hausdorff.cpython-312-darwin.so +0 -0
  81. scipy/spatial/_qhull.cpython-312-darwin.so +0 -0
  82. scipy/spatial/_voronoi.cpython-312-darwin.so +0 -0
  83. scipy/spatial/qhull_src/COPYING_QHULL.txt +39 -0
  84. scipy/spatial/tests/test_distance.py +5 -4
  85. scipy/spatial/transform/_rigid_transform.cpython-312-darwin.so +0 -0
  86. scipy/spatial/transform/_rotation.cpython-312-darwin.so +0 -0
  87. scipy/special/_comb.cpython-312-darwin.so +0 -0
  88. scipy/special/_ellip_harm_2.cpython-312-darwin.so +0 -0
  89. scipy/special/_specfun.cpython-312-darwin.so +0 -0
  90. scipy/special/_test_internal.cpython-312-darwin.so +0 -0
  91. scipy/special/_ufuncs.cpython-312-darwin.so +0 -0
  92. scipy/special/_ufuncs_cxx.cpython-312-darwin.so +0 -0
  93. scipy/special/cython_special.cpython-312-darwin.so +0 -0
  94. scipy/stats/_ansari_swilk_statistics.cpython-312-darwin.so +0 -0
  95. scipy/stats/_biasedurn.cpython-312-darwin.so +0 -0
  96. scipy/stats/_levy_stable/levyst.cpython-312-darwin.so +0 -0
  97. scipy/stats/_qmc_cy.cpython-312-darwin.so +0 -0
  98. scipy/stats/_qmvnt_cy.cpython-312-darwin.so +0 -0
  99. scipy/stats/_rcont/rcont.cpython-312-darwin.so +0 -0
  100. scipy/stats/_sobol.cpython-312-darwin.so +0 -0
  101. scipy/stats/_stats.cpython-312-darwin.so +0 -0
  102. scipy/stats/_unuran/unuran_wrapper.cpython-312-darwin.so +0 -0
  103. scipy/version.py +2 -2
  104. {scipy-1.16.1.dist-info → scipy-1.16.2.dist-info}/METADATA +2 -2
  105. {scipy-1.16.1.dist-info → scipy-1.16.2.dist-info}/RECORD +107 -106
  106. {scipy-1.16.1.dist-info → scipy-1.16.2.dist-info}/LICENSE.txt +0 -0
  107. {scipy-1.16.1.dist-info → scipy-1.16.2.dist-info}/WHEEL +0 -0
@@ -1055,7 +1055,6 @@ class TestLombscargle:
1055
1055
  delta = f[1] - f[0]
1056
1056
  assert(w - f[np.argmax(P)] < (delta/2.))
1057
1057
 
1058
-
1059
1058
  def test_amplitude(self):
1060
1059
  # Test if height of peak in unnormalized Lomb-Scargle periodogram
1061
1060
  # corresponds to amplitude of the generated input signal.
@@ -1503,6 +1502,45 @@ class TestLombscargle:
1503
1502
 
1504
1503
  lombscargle(t, y, freqs)
1505
1504
 
1505
+ def test_input_mutation(self):
1506
+ # this tests for mutation of the input arrays
1507
+ # https://github.com/scipy/scipy/issues/23474
1508
+
1509
+ # Input parameters
1510
+ ampl = 2.
1511
+ w = 1.
1512
+ phi = 0.5 * np.pi
1513
+ nin = 100
1514
+ nout = 1000
1515
+ p = 0.7 # Fraction of points to select
1516
+
1517
+ # Randomly select a fraction of an array with timesteps
1518
+ rng = np.random.default_rng()
1519
+ r = rng.random(nin)
1520
+ t = np.linspace(0.01*np.pi, 10.*np.pi, nin)[r >= p]
1521
+
1522
+ # Plot a sine wave for the selected times
1523
+ y = ampl * np.sin(w*t + phi)
1524
+
1525
+ # Define the array of frequencies for which to compute the periodogram
1526
+ f = np.linspace(0.01, 10., nout)
1527
+
1528
+ weights = np.ones_like(y)
1529
+
1530
+ # create original copies before passing
1531
+ t_org = t.copy()
1532
+ y_org = y.copy()
1533
+ f_org = f.copy()
1534
+ weights_org = weights.copy()
1535
+
1536
+ lombscargle(t, y, f, precenter=True, weights=weights)
1537
+
1538
+ # check all 4 array inputs
1539
+ assert_array_equal(t, t_org)
1540
+ assert_array_equal(y, y_org)
1541
+ assert_array_equal(f, f_org)
1542
+ assert_array_equal(weights, weights_org)
1543
+
1506
1544
 
1507
1545
  class TestSTFT:
1508
1546
  @pytest.mark.thread_unsafe
Binary file
@@ -0,0 +1,39 @@
1
+ Qhull, Copyright (c) 1993-2020
2
+
3
+ C.B. Barber
4
+ Arlington, MA
5
+
6
+ and
7
+
8
+ The National Science and Technology Research Center for
9
+ Computation and Visualization of Geometric Structures
10
+ (The Geometry Center)
11
+ University of Minnesota
12
+
13
+ email: qhull@qhull.org
14
+
15
+ This software includes Qhull from C.B. Barber and The Geometry Center.
16
+ Files derived from Qhull 1.0 are copyrighted by the Geometry Center. The
17
+ remaining files are copyrighted by C.B. Barber. Qhull is free software
18
+ and may be obtained via http from www.qhull.org. It may be freely copied,
19
+ modified, and redistributed under the following conditions:
20
+
21
+ 1. All copyright notices must remain intact in all files.
22
+
23
+ 2. A copy of this text file must be distributed along with any copies
24
+ of Qhull that you redistribute; this includes copies that you have
25
+ modified, or copies of programs or other software products that
26
+ include Qhull.
27
+
28
+ 3. If you modify Qhull, you must include a notice giving the
29
+ name of the person performing the modification, the date of
30
+ modification, and the reason for such modification.
31
+
32
+ 4. When distributing modified versions of Qhull, or other software
33
+ products that include Qhull, you must provide notice that the original
34
+ source code may be obtained as noted above.
35
+
36
+ 5. There is no warranty or other guarantee of fitness for Qhull, it is
37
+ provided solely "as is". Bug reports or fixes may be sent to
38
+ qhull_bug@qhull.org; the authors may or may not act on them as
39
+ they desire.
@@ -32,14 +32,14 @@
32
32
  # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
33
  # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
34
 
35
- import sys
36
- import os.path
37
-
38
35
  from functools import wraps, partial
36
+ import os.path
37
+ import sys
38
+ import sysconfig
39
+ import warnings
39
40
  import weakref
40
41
 
41
42
  import numpy as np
42
- import warnings
43
43
  from numpy.linalg import norm
44
44
  from numpy.testing import (verbose, assert_,
45
45
  assert_array_equal, assert_equal,
@@ -632,6 +632,7 @@ class TestCdist:
632
632
  assert_allclose(y1, y2, rtol=eps, verbose=verbose > 2)
633
633
 
634
634
  @pytest.mark.thread_unsafe
635
+ @pytest.mark.skipif(sysconfig.get_platform() == 'win-arm64', reason="numpy#29442")
635
636
  def test_cdist_out(self, metric):
636
637
  # Test that out parameter works properly
637
638
  eps = 1e-15
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
scipy/version.py CHANGED
@@ -2,10 +2,10 @@
2
2
  """
3
3
  Module to expose more detailed version info for the installed `scipy`
4
4
  """
5
- version = "1.16.1"
5
+ version = "1.16.2"
6
6
  full_version = version
7
7
  short_version = version.split('.dev')[0]
8
- git_revision = "0cf8e9541b1a2457992bf4ec2c0c669da373e497"
8
+ git_revision = "b1296b9b4393e251511fe8fdd3e58c22a1124899"
9
9
  release = 'dev' not in version and '+' not in version
10
10
 
11
11
  if not release:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scipy
3
- Version: 1.16.1
3
+ Version: 1.16.2
4
4
  Summary: Fundamental algorithms for scientific computing in Python
5
5
  Maintainer-Email: SciPy Developers <scipy-dev@python.org>
6
6
  License: Copyright (c) 2001-2002 Enthought, Inc. 2003, SciPy Developers.
@@ -964,7 +964,7 @@ Project-URL: tracker, https://github.com/scipy/scipy/issues
964
964
  Requires-Python: >=3.11
965
965
  Requires-Dist: numpy<2.6,>=1.25.2
966
966
  Provides-Extra: test
967
- Requires-Dist: pytest; extra == "test"
967
+ Requires-Dist: pytest>=8.0.0; extra == "test"
968
968
  Requires-Dist: pytest-cov; extra == "test"
969
969
  Requires-Dist: pytest-timeout; extra == "test"
970
970
  Requires-Dist: pytest-xdist; extra == "test"