chore(deps): update dependency scipy to ~1.16 #29
Reference in New Issue
Block a user
Delete Branch "renovate/scipy-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~1.10->~1.16Release Notes
scipy/scipy
v1.16.3Compare Source
SciPy 1.16.3 Release Notes
SciPy
1.16.3is a bug-fix release with no new features compared to1.16.2.Authors
A total of 8 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.2Compare Source
SciPy 1.16.2 Release Notes
SciPy
1.16.2is a bug-fix release with no new featurescompared to
1.16.1. This is the first stable release ofSciPy to provide Windows on ARM wheels on PyPI.
Authors
A total of 12 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.1Compare Source
SciPy 1.16.1 Release Notes
SciPy
1.16.1is a bug-fix release that adds support for Python3.14.0rc1,including PyPI wheels.
Authors
A total of 12 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
The full issue and pull request lists, and the release asset hashes are available
in the associated
README.txtfile.v1.16.0Compare Source
SciPy 1.16.0 Release Notes
SciPy
1.16.0is the culmination of 6 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.16.x branch, and on adding new features on the main branch.
This release requires Python
3.11-3.13and NumPy1.25.2or greater.Highlights of this release
new support in
scipy.signal, and additional support inscipy.statsandscipy.special. Improved support for JAX and Dask backends has been added,with notable support in
scipy.cluster.hierarchy, many functions inscipy.special, and many of the trimmed statistics functions.scipy.optimizenow uses the new Python implementation from thePRIMApackage for COBYLA. The PRIMA implementation fixes many bugsin the old Fortran 77 implementation with a better performance on average.
scipy.sparse.coo_arraynow supports n-D arrays with reshaping, arithmetic andreduction operations like sum/mean/min/max. No n-D indexing or
scipy.sparse.random_arraysupport yet.scipy.linalgnamespace that accept arrayarguments now support N-dimensional arrays to be processed as a batch.
scipy.signalfunctions,scipy.signal.firwin_2dandscipy.signal.closest_STFT_dual_window, for creation of a 2-D FIR filter andscipy.signal.ShortTimeFFTdual window calculation, respectively.scipy.spatial.transform.RigidTransform, provides functionalityto convert between different representations of rigid transforms in 3-D
space.
scipy.ndimage.vectorized_filterfor generic filters thattake advantage of a vectorized Python callable was added.
New features
scipy.ioimprovementsscipy.io.savematnow provides informative warnings for invalid field names.scipy.io.mmreadnow provides a clearer error message when provided witha source file path that does not exist.
scipy.io.wavfile.readcan now read non-seekable files.scipy.integrateimprovementsscipy.integrate.tanhsinhwas improved.scipy.interpolateimprovementsscipy.interpolate.make_smoothing_spline.scipy.linalgimprovementsscipy.linalgnamespace that accept arrayarguments now support N-dimensional arrays to be processed as a batch.
See
linalg_batchfor details.scipy.linalg.sqrtmis rewritten in C and its performance is improved. Italso tries harder to return real-valued results for real-valued inputs if
possible. See the function docstring for more details. In this version the
input argument
dispand the optional output argumenterrestaredeprecated and will be removed four versions later. Similarly, after
changing the underlying algorithm to recursion, the
blocksizekeywordargument has no effect and will be removed two versions later.
?stevd,?langb,?sytri,?hetriand?gbconwere added toscipy.linalg.lapack.scipy.linalg.eigh_tridiagonalwas improved.scipy.linalg.solvecan now estimate the reciprocal condition number andthe matrix norm calculation is more efficient.
scipy.ndimageimprovementsscipy.ndimage.vectorized_filterfor generic filters thattake advantage of a vectorized Python callable was added.
scipy.ndimage.rotatehas improved performance, especially on ARM platforms.scipy.optimizeimprovementsPRIMApackage.The PRIMA implementation fixes many bugs
in the old Fortran 77 implementation. In addition, it results in fewer function evaluations on average
but it depends on the problem and for some
problems it can result in more function evaluations or a less optimal
result. For those cases the user can try modifying the initial and final
trust region radii given by
rhobegandtolrespectively. A largerrhobegcan help the algorithm take bigger steps initially, while asmaller
tolcan help it continue and find a better solution.For more information, see the PRIMA documentation.
scipy.optimize.minimizemethods, and thescipy.optimize.least_squaresfunction, have been given aworkerskeyword. This allows parallelization of some calculations via a map-like
callable, such as
multiprocessing.Pool. These parallelizationopportunities typically occur during numerical differentiation. This can
greatly speed up minimization when the objective function is expensive to
calculate.
lmmethod ofscipy.optimize.least_squarescan now accept3-pointandcsfor thejackeyword.constraint multipliers are exposed to the user through the
multiplierkeyword of the returned
scipy.optimize.OptimizeResultobject.regression introduced in 1.15.x
scipy.optimize.rootnow warns for invalid inner parameters when using thenewton_krylovmethodmethod='L-BFGS-B'now hasa faster
hess_inv.todense()implementation. Time complexity has improvedfrom cubic to quadratic.
scipy.optimize.least_squareshas a newcallbackargument that is applicableto the
trfanddogboxmethods.callbackmay be used to trackoptimization results at each step or to provide custom conditions for
stopping.
scipy.signalimprovementsscipy.signal.firwin_2dfor the creation of a 2-D FIR Filterusing the 1-D window method was added.
scipy.signal.cspline1d_evalandscipy.signal.qspline1d_evalnow providean informative error on empty input rather than hitting the recursion limit.
scipy.signal.closest_STFT_dual_windowto calculate thescipy.signal.ShortTimeFFTdual window of a given window closest to adesired dual window.
scipy.signal.ShortTimeFFT.from_win_equals_dualtocreate a
scipy.signal.ShortTimeFFTinstance where the window and its dualare equal up to a scaling factor. It allows to create short-time Fourier
transforms which are unitary mappings.
scipy.signal.convolve2dwas improved.scipy.sparseimprovementsscipy.sparse.coo_arraynow supports n-D arrays using binary and reductionoperations.
matmul.
scipy.sparse.csgraph.dijkstrashortest_path is more efficient.scipy.sparse.csgraph.yenhas performance improvements.sparse.csgraphandsparse.linalgwasadded.
scipy.spatialimprovementsscipy.spatial.transform.RigidTransform, provides functionalityto convert between different representations of rigid transforms in 3-D
space, its application to vectors and transform composition.
It follows the same design approach as
scipy.spatial.transform.Rotation.scipy.spatial.transform.Rotationnow has an appropriate__repr__method,and improved performance for its
scipy.spatial.transform.Rotation.applymethod.
scipy.statsimprovementsscipy.stats.quantile, an array API compatible function forquantile estimation, was added.
scipy.stats.make_distributionwas extended to work with existing discretedistributions and to facilitate the creation of custom distributions in the
new random variable infrastructure.
scipy.stats.Binomial, was added.equal_varkeyword was added toscipy.stats.tukey_hsd(enables theGames-Howell test) and
scipy.stats.f_oneway(enables Welch ANOVA).scipy.stats.gennormwas improved.scipy.stats.modeimplementation was vectorized, for faster batchcalculation.
axis,nan_policy, andkeepdimskeywords was added toscipy.stats.power_divergence,scipy.stats.chisquare,scipy.stats.pointbiserialr,scipy.stats.kendalltau,scipy.stats.weightedtau,scipy.stats.theilslopes,scipy.stats.siegelslopes,scipy.stats.boxcox_llf, andscipy.stats.linregress.keepdimsandnan_policykeywords was added toscipy.stats.gstd.scipy.stats.special_ortho_groupandscipy.stats.pearsonrwas improved.
rngkeyword argument was added to thelogcdfandcdfmethods ofmultivariate_normal_genandmultivariate_normal_frozen.Array API Standard Support
Experimental support for array libraries other than NumPy has been added to
multiple submodules in recent versions of SciPy. Please consider testing
these features by setting the environment variable
SCIPY_ARRAY_API=1andproviding PyTorch, JAX, CuPy or Dask arrays as array arguments.
Many functions in
scipy.stats,scipy.special,scipy.optimize, andscipy.constantsnow provide tables documenting compatible array and devicetypes as well as support for lazy arrays and JIT compilation. New features with
support and old features with support added for SciPy 1.16.0 include:
scipy.signalfunctionalityscipy.ndimage.vectorized_filterscipy.special.stdtritscipy.special.softmaxscipy.special.log_softmaxscipy.stats.quantilescipy.stats.gstdscipy.stats.rankdataFeatures with extended array API support (generally, improved support
for JAX and Dask) in SciPy 1.16.0 include:
scipy.cluster.hierarchyfunctionsscipy.specialscipy.statsSciPy now has a CI job that exercises GPU (CUDA) support, and as a result
using PyTorch, CuPy or JAX arrays on GPU with SciPy is now more reliable.
Deprecated features
atolargument ofscipy.optimize.nnlsis deprecated and willbe removed in SciPy 1.18.0.
dispargument ofscipy.linalg.signm,scipy.linalg.logm, andscipy.linalg.sqrtmwill be removed in SciPy 1.18.0.scipy.stats.multinomialnow emits aFutureWarningif the rows ofpdo not sum to
1.0. This condition will produce NaNs beginning in SciPy1.18.0.
dispandiprintarguments of thel-bfgs-bsolver ofscipy.optimizehave been deprecated, and will be removed in SciPy 1.18.0.
Expired Deprecations
scipy.sparse.conjtransphas been removed. Use.T.conj()instead.quadrature='trapz'option has been removed fromscipy.integrate.quad_vec, andscipy.stats.trapzhas been removed. Usetrapezoidin both instances instead.scipy.special.combandscipy.special.permnow raise whenexact=Trueand arguments are non-integral.
argument
xhas been removed fromscipy.stats.linregress. The datamust be specified separately as
xandy.scipy.stats.power_divergenceandscipy.stats.chisquare.(e.g.,
scipy.sparse.base,scipy.interpolate.dfitpack) were cleanedup. They were previously already emitting deprecation warnings.
Backwards incompatible changes
scipy.linalgfunctions for solving a linear system (e.g.scipy.linalg.solve) documented that the RHS argument must be either 1-D or2-D but did not always raise an error when the RHS argument had more the
two dimensions. Now, many-dimensional right hand sides are treated according
to the rules specified in
linalg_batch.scipy.stats.bootstrapnow explicitly broadcasts elements ofdatato thesame shape (ignoring
axis) before performing the calculation.from scipy.signal import *,but may still be imported directly, as detailed at scipy/scipy-stubs#549.
Build and packaging related changes
10.13.
from 60 MB to 30 MB.
Cython>=3.1.0, SciPy now uses the newcython --generate-sharedfunctionality, which reduces the total size of SciPy's wheels and on-disk
installations significantly.
after
sf_error_statewas removed fromscipy.special.-Duse-system-librarieshas been added. It allowsopting in to using system libraries instead of using vendored sources.
Currently
Boost.MathandQhullare supported as system builddependencies.
Other changes
scipy-stubs(v1.16.0.0) isavailable at https://github.com/scipy/scipy-stubs/releases/tag/v1.16.0.0
scipy._libonscipy.sparsewas removed,which reduces the import time of a number of other SciPy submodules.
issues in
scipy.specialwere fixed, andpytest-run-parallelis now usedin a CI job to guard against regressions.
spinas a developerCLI was added, including support for editable installs. The SciPy-specific
python dev.pyCLI will be removed in the next release cycle in favor ofspin.scipy.specialwas moved to the newheader-only
xsflibrary. That library wasincluded back in the SciPy source tree as a git submodule.
namedtuple-like bunch objects returned by some SciPy functionsnow have improved compatibility with the
polarslibrary.rvsmethod ofscipy.stats.wrapcauchyis now mapped tothe unit circle between 0 and
2 * pi.lmmethod ofscipy.optimize.least_squaresnow has a different behaviorfor the maximum number of function evaluations,
max_nfev. The default forthe
lmmethod is changed to100 * n, for both a callable and anumerically estimated jacobian. This limit on function evaluations excludes
those used for any numerical estimation of the Jacobian. Previously the
default when using an estimated jacobian was
100 * n * (n + 1), becausethe method included evaluations used in the estimation. In addition, for the
lmmethod the number of function calls used in Jacobian approximationis no longer included in
OptimizeResult.nfev. This brings the behaviorof
lm,trf, anddogboxinto line.Authors
A total of 126 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Complete issue list, PR list, and release asset hashes are available in the associated
README.txt.v1.15.3Compare Source
SciPy 1.15.3 Release Notes
SciPy
1.15.3is a bug-fix release with no new featurescompared to
1.15.2.For the complete issue and PR lists see the raw release notes.
Authors
A total of 24 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.15.2Compare Source
SciPy 1.15.2 Release Notes
SciPy
1.15.2is a bug-fix release with no new featurescompared to
1.15.1. Free-threaded Python3.13wheelsfor Linux ARM platform are available on PyPI starting with
this release.
Authors
A total of 14 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.15.1Compare Source
SciPy 1.15.1 Release Notes
SciPy
1.15.1is a bug-fix release with no new featurescompared to
1.15.0. Importantly, an issue with theimport of
scipy.optimizebreaking other packageshas been fixed.
Authors
A total of 5 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.15.0Compare Source
SciPy 1.15.0 Release Notes
SciPy
1.15.0is the culmination of6months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.15.x branch, and on adding new features on the main branch.
This release requires Python
3.10-3.13and NumPy1.23.5or greater.Highlights of this release
Sparse arrays are now fully functional for 1-D and 2-D arrays. We recommend
that all new code use sparse arrays instead of sparse matrices and that
developers start to migrate their existing code from sparse matrix to sparse
array:
migration_to_sparray. Bothsparse.linalgandsparse.csgraphwork with either sparse matrix or sparse array and work internally with
sparse array.
Sparse arrays now provide basic support for n-D arrays in the COO format
including
add,subtract,reshape,transpose,matmul,dot,tensordotand others. More functionality is coming in futurereleases.
Preliminary support for free-threaded Python 3.13.
New probability distribution features in
scipy.statscan be used to improvethe speed and accuracy of existing continuous distributions and perform new
probability calculations.
Several new features support vectorized calculations with Python Array API
Standard compatible input (see "Array API Standard Support" below):
scipy.differentiateis a new top-level submodule for accurateestimation of derivatives of black box functions.
scipy.optimize.elementwisecontains new functions for root-finding andminimization of univariate functions.
scipy.integrateoffers new functionscubature,tanhsinh, andnsumfor multivariate integration, univariate integration, andunivariate series summation, respectively.
scipy.interpolate.AAAadds the AAA algorithm for barycentric rationalapproximation of real or complex functions.
scipy.specialadds new functions offering improved Legendre functionimplementations with a more consistent interface.
New features
scipy.differentiateintroductionThe new
scipy.differentiatesub-package contains functions for accurateestimation of derivatives of black box functions.
scipy.differentiate.derivativefor first-order derivatives ofscalar-in, scalar-out functions.
scipy.differentiate.jacobianfor first-order partial derivatives ofvector-in, vector-out functions.
scipy.differentiate.hessianfor second-order partial derivatives ofvector-in, scalar-out functions.
All functions use high-order finite difference rules with adaptive (real)
step size. To facilitate batch computation, these functions are vectorized
and support several Array API compatible array libraries in addition to NumPy
(see "Array API Standard Support" below).
scipy.integrateimprovementsscipy.integrate.cubaturefunction supports multidimensionalintegration, and has support for approximating integrals with
one or more sets of infinite limits.
scipy.integrate.tanhsinhis now exposed for public use, allowingevaluation of a convergent integral using tanh-sinh quadrature.
scipy.integrate.nsumevaluates finite and infinite series and theirlogarithms.
scipy.integrate.lebedev_rulecomputes abscissae and weights forintegration over the surface of a sphere.
QUADPACKFortran77 package has been ported to C.scipy.interpolateimprovementsscipy.interpolate.AAAadds the AAA algorithm for barycentric rationalapproximation of real or complex functions.
scipy.interpolate.FloaterHormannInterpolatoradds barycentric rationalinterpolation.
scipy.interpolate.make_splrepandscipy.interpolate.make_splprepimplement construction of smoothing splines.The algorithmic content is equivalent to FITPACK (
splrepandsplprepfunctions, and
*UnivariateSplineclasses) and the user API is consistentwith
make_interp_spline: these functions receive data arrays and returna
scipy.interpolate.BSplineinstance.scipy.interpolate.generate_knotsimplements theFITPACK strategy for selecting knots of a smoothing spline given the
smoothness parameter,
s. The function exposes the internal logic of knotselection that
splrepand*UnivariateSplinewas using.scipy.linalgimprovementsscipy.linalg.interpolativeFortran77 code has been ported to Cython.scipy.linalg.solvesupports several new values for theassume_aargument, enabling faster computation for diagonal, tri-diagonal, banded, and
triangular matrices. Also, when
assume_ais left unspecified, thefunction now automatically detects and exploits diagonal, tri-diagonal,
and triangular structures.
scipy.linalgmatrix creation functions (scipy.linalg.circulant,scipy.linalg.companion,scipy.linalg.convolution_matrix,scipy.linalg.fiedler,scipy.linalg.fiedler_companion, andscipy.linalg.leslie) now support batchmatrix creation.
scipy.linalg.funmis faster.scipy.linalg.orthogonal_procrustesnow supports complex input.scipy.linalg.lapack:?lantr,?sytrs,?hetrs,?trcon,and
?gtcon.scipy.linalg.expmwas rewritten in C.scipy.linalg.null_spacenow accepts the new argumentsoverwrite_a,check_finite, andlapack_driver.id_distFortran code was rewritten in Cython.scipy.ndimageimprovementsaxesargumentthat specifies which axes of the input filtering is to be performed on.
These include
correlate,convolve,generic_laplace,laplace,gaussian_laplace,derivative2,generic_gradient_magnitude,gaussian_gradient_magnitudeandgeneric_filter.axesargument that specifies which axes of the input filtering is to be performed
on.
scipy.ndimage.rank_filtertime complexity has improved fromntolog(n).scipy.optimizeimprovements1.4.0to1.8.0,bringing accuracy and performance improvements to solvers.
MINPACKFortran77 package has been ported to C.L-BFGS-BFortran77 package has been ported to C.scipy.optimize.elementwisenamespace includes functionsbracket_root,find_root,bracket_minimum, andfind_minimumfor root-finding and minimization of univariate functions. To facilitate
batch computation, these functions are vectorized and support several
Array API compatible array libraries in addition to NumPy (see
"Array API Standard Support" below). Compared to existing functions (e.g.
scipy.optimize.root_scalarandscipy.optimize.minimize_scalar),these functions can offer speedups of over 100x when used with NumPy arrays,
and even greater gains are possible with other Array API Standard compatible
array libraries (e.g. CuPy).
scipy.optimize.differential_evolutionnow supports more general use ofworkers, such as passing a map-like callable.scipy.optimize.nnlswas rewritten in Cython.HessianUpdateStrategynow supports__matmul__.scipy.signalimprovementssignal.chirp().scipy.signal.lombscarglehas two new arguments,weightsandfloating_mean, enabling sample weighting and removal of an unknowny-offset independently for each frequency. Additionally, the
normalizeargument includes a new option to return the complex representation of the
amplitude and phase.
scipy.signal.envelopefor computation of the envelope of areal or complex valued signal.
scipy.sparseimprovementsmoving from sparse.matrix to sparse.array in your code/library.
arrays are now fully functional for 1-D and 2D.
for basic arithmetic.
sparse.linalg.is_sptriangularandsparse.linalg.spbandwidthmimic the existing dense toolslinalg.is_triangularandlinalg.bandwidth.sparse.linalgandsparse.csgraphnow work with sparse arrays. Becareful that your index arrays are 32-bit. We are working on 64bit support.
ARPACKlibrary has been upgraded to version3.9.1.axisargument forcount_nonzero.incompatible data types, such as
float16.min,max,argmin, andargmaxnow support computationover nonzero elements only via the new
explicitargument.get_index_dtypeandsafely_cast_index_arraysareavailable to facilitate index array casting in
sparse.scipy.spatialimprovementsRotation.concatenatenow accepts a bareRotationobject, and willreturn a copy of it.
scipy.specialimprovementsNew functions offering improved Legendre function implementations with a
more consistent interface. See respective docstrings for more information.
scipy.special.legendre_p,scipy.special.legendre_p_allscipy.special.assoc_legendre_p,scipy.special.assoc_legendre_p_allscipy.special.sph_harm_y,scipy.special.sph_harm_y_allscipy.special.sph_legendre_p,scipy.special.sph_legendre_p_all,The factorial functions
special.{factorial,factorial2,factorialk}nowoffer an extension to the complex domain by passing the kwarg
extend='complex'. This is opt-in because it changes the values fornegative inputs (which by default return 0), as well as for some integers
(in the case of
factorial2andfactorialk; for more details,check the respective docstrings).
scipy.special.zetanow defines the Riemann zeta function on the complexplane.
scipy.special.softpluscomputes the softplus functionThe spherical Bessel functions (
scipy.special.spherical_jn,scipy.special.spherical_yn,scipy.special.spherical_in, andscipy.special.spherical_kn) now support negative arguments with real dtype.scipy.special.logsumexpnow preserves precision when one element of thesum has magnitude much bigger than the rest.
The accuracy of several functions has been improved:
scipy.special.ncfdtr,scipy.special.nctdtr, andscipy.special.gdtribhave been improved throughout the domain.scipy.special.hyperuis improved for the case ofb=1, smallx,and small
a.scipy.special.logitis improved near the argumentp=0.5.scipy.special.rel_entris improved whenx/yoverflows, underflows,or is close to
1.scipy.special.ndtris now more efficient forsqrt(2)/2 < |x| < 1.scipy.statsimprovementsA new probability distribution infrastructure has been added for the
implementation of univariate, continuous distributions. It has several
speed, accuracy, memory, and interface advantages compared to the
previous infrastructure. See
rv_infrastructurefor a tutorial.scipy.stats.make_distributionto treat an existing continuousdistribution (e.g.
scipy.stats.norm) with the new infrastructure.This can improve the speed and accuracy of existing distributions,
especially those with methods not overridden with distribution-specific
formulas.
scipy.stats.Normalandscipy.stats.Uniformare pre-defined classesto represent the normal and uniform distributions, respectively.
Their interfaces may be faster and more convenient than those produced by
make_distribution.scipy.stats.Mixturecan be used to represent mixture distributions.Instances of
scipy.stats.Normal,scipy.stats.Uniform, and the classesreturned by
scipy.stats.make_distributionare supported by several newmathematical transformations.
scipy.stats.truncatefor truncation of the support.scipy.stats.order_statisticfor the order statistics of a given numberof IID random variables.
scipy.stats.abs,scipy.stats.exp, andscipy.stats.log. For example,scipy.stats.abs(Normal())is distributed according to the folded normaland
scipy.stats.exp(Normal())is lognormally distributed.The new
scipy.stats.lmomentcalculates sample l-moments and l-momentratios. Notably, these sample estimators are unbiased.
scipy.stats.chatterjeexicomputes the Xi correlation coefficient, whichcan detect nonlinear dependence. The function also performs a hypothesis
test of independence between samples.
scipy.stats.wilcoxonhas improved method resolution logic for the defaultmethod='auto'. Other values ofmethodprovided by the user are nowrespected in all cases, and the method argument
approxhas beenrenamed to
asymptoticfor consistency with similar functions. (Use ofapproxis still allowed for backward compatibility.)There are several new probability distributions:
scipy.stats.dpareto_lognormrepresents the double Pareto lognormaldistribution.
scipy.stats.landaurepresents the Landau distribution.scipy.stats.normal_inverse_gammarepresents the normal-inverse-gammadistribution.
scipy.stats.poisson_binomrepresents the Poisson binomial distribution.Batch calculation with
scipy.stats.alexandergovernandscipy.stats.combine_pvaluesis faster.scipy.stats.chisquareadded an argumentsum_check. By default, thefunction raises an error when the sum of expected and obseved frequencies
are not equal; setting
sum_check=Falsedisables this check tofacilitate hypothesis tests other than Pearson's chi-squared test.
The accuracy of several distribution methods has been improved, including:
scipy.stats.nctmethodpdfscipy.stats.crystalballmethodsfscipy.stats.geommethodrvsscipy.stats.cauchymethodslogpdf,pdf,ppfandisflogcdfand/orlogsfmethods of distributions that do notoverride the generic implementation of these methods, including
scipy.stats.beta,scipy.stats.betaprime,scipy.stats.cauchy,scipy.stats.chi,scipy.stats.chi2,scipy.stats.exponweib,scipy.stats.gamma,scipy.stats.gompertz,scipy.stats.halflogistic,scipy.stats.hypsecant,scipy.stats.invgamma,scipy.stats.laplace,scipy.stats.levy,scipy.stats.loggamma,scipy.stats.maxwell,scipy.stats.nakagami, andscipy.stats.t.scipy.stats.qmc.PoissonDisknow accepts lower and upper boundsparameters
l_boundsandu_bounds.scipy.stats.fisher_exactnow supports two-dimensional tables with shapesother than
(2, 2).Preliminary Support for Free-Threaded CPython 3.13
SciPy
1.15has preliminary support for the free-threaded build of CPython3.13.This allows SciPy functionality to execute in parallel with Pythonthreads
(see the
threadingstdlib module). This support was enabled by fixing asignificant number of thread-safety issues in both pure Python and
C/C++/Cython/Fortran extension modules. Wheels are provided on PyPI for this
release; NumPy
>=2.1.3is required at runtime. Note that building for afree-threaded interpreter requires a recent pre-release or nightly for Cython
3.1.0.Support for free-threaded Python does not mean that SciPy is fully thread-safe.
Please see
scipy_thread_safetyfor more details.If you are interested in free-threaded Python, for example because you have a
multiprocessing-based workflow that you are interested in running with Python
threads, we encourage testing and experimentation. If you run into problems
that you suspect are because of SciPy, please open an issue, checking first if
the bug also occurs in the "regular" non-free-threaded CPython
3.13build.Many threading bugs can also occur in code that releases the GIL; disabling
the GIL only makes it easier to hit threading bugs.
Array API Standard Support
Experimental support for array libraries other than NumPy has been added to
existing sub-packages in recent versions of SciPy. Please consider testing
these features by setting an environment variable
SCIPY_ARRAY_API=1andproviding PyTorch, JAX, ndonnx, or CuPy arrays as array arguments. Features
with support added for SciPy
1.15.0include:scipy.differentiate(new sub-package)scipy.optimize.elementwise(new namespace)scipy.optimize.rosen,scipy.optimize.rosen_der, andscipy.optimize.rosen_hessscipy.special.logsumexpscipy.integrate.trapezoidscipy.integrate.tanhsinh(newly public function)scipy.integrate.cubature(new function)scipy.integrate.nsum(new function)scipy.special.chdtr,scipy.special.betainc, andscipy.special.betainccscipy.stats.boxcox_llfscipy.stats.differential_entropyscipy.stats.zmap,scipy.stats.zscore, andscipy.stats.gzscorescipy.stats.tmean,scipy.stats.tvar,scipy.stats.tstd,scipy.stats.tsem,scipy.stats.tmin, andscipy.stats.tmaxscipy.stats.gmean,scipy.stats.hmeanandscipy.stats.pmeanscipy.stats.combine_pvaluesscipy.stats.ttest_ind,scipy.stats.ttest_relscipy.stats.directional_statsscipy.ndimagefunctions will now delegate tocupyx.scipy.ndimage,and for other backends will transit via NumPy arrays on the host.
Deprecated features and future changes
scipy.linalg.interpolative.randandscipy.linalg.interpolative.seedhave been deprecated and will be removedin SciPy
1.17.0.scipy.spatial.distance.cosineandscipy.spatial.distance.correlationhave been deprecated and will raisean error in SciPy
1.17.0.scipy.spatial.distance.kulczynski1andscipy.spatial.distance.sokalmichenerwere deprecated and will be removedin SciPy
1.17.0.scipy.stats.find_repeatsis deprecated and will beremoved in SciPy
1.17.0. Please usenumpy.unique/numpy.unique_countsinstead.scipy.linalg.kronis deprecated in favour ofnumpy.kron.scipy.signalconvolution/correlation functions (
scipy.signal.correlate,scipy.signal.convolveandscipy.signal.choose_conv_method) andfiltering functions (
scipy.signal.lfilter,scipy.signal.sosfilt) hasbeen deprecated and will be removed in SciPy
1.17.0.scipy.stats.linregresshas deprecated one-argument use; the twovariables must be specified as separate arguments.
scipy.stats.trapzis deprecated in favor ofscipy.stats.trapezoid.scipy.special.lpnis deprecated in favor ofscipy.special.legendre_p_all.scipy.special.lpmnandscipy.special.clpmnare deprecated in favor ofscipy.special.assoc_legendre_p_all.scipy.special.sph_harmhas been deprecated in favor ofscipy.special.sph_harm_y.randcarrays passed toscipy.linalg.toeplitz,scipy.linalg.matmul_toeplitz, orscipy.linalg.solve_toeplitzwill betreated as batches of 1-D coefficients beginning in SciPy
1.17.0.random_stateandpermutationsarguments ofscipy.stats.ttest_indare deprecated. Usemethodto perform apermutation test, instead.
Expired Deprecations
scipy.signalhave been removed. This includesdaub,qmf,cascade,morlet,morlet2,ricker,and
cwt. Users should usepywaveletsinstead.scipy.signal.cmplx_sorthas been removed.scipy.integrate.quadratureandscipy.integrate.romberghave beenremoved in favour of
scipy.integrate.quad.scipy.stats.rvs_ratio_uniformshas been removed in favor ofscipy.stats.sampling.RatioUniforms.scipy.special.factorialnow raises an error for non-integer scalars whenexact=True.scipy.integrate.cumulative_trapezoidnow raises an error for values ofinitialother than0andNone.scipy.interpolate.Akima1DInterpolatorand
scipy.interpolate.PchipInterpolatorspecial.btdtrandspecial.btdtrihave been removed.exact=kwarg inspecial.factorialkhas changedfrom
TruetoFalse.scipy.miscsubmodule have been removed.Backwards incompatible changes
interpolate.BSpline.integrateoutput is now always a numpy array.Previously, for 1D splines the output was a python float or a 0D array
depending on the value of the
extrapolateargument.scipy.stats.wilcoxonnow respects themethodargument provided by theuser. Previously, even if
method='exact'was specified, the functionwould resort to
method='approx'in some cases.scipy.integrate.AccuracyWarninghas been removed as the functions thewarning was emitted from (
scipy.integrate.quadratureandscipy.integrate.romberg) have been removed.Other changes
A separate accompanying type stubs package,
scipy-stubs, will be madeavailable with the
1.15.0release. Installation instructions areavailable.
scipy.stats.bootstrapnow emits aFutureWarningif the shapes of theinput arrays do not agree. Broadcast the arrays to the same batch shape
(i.e. for all dimensions except those specified by the
axisargument)to avoid the warning. Broadcasting will be performed automatically in the
future.
SciPy endorsed SPEC-7,
which proposes a
rngargument to control pseudorandom number generation(PRNG) in a standard way, replacing legacy arguments like
seedandrandom_sate. In many cases, use ofrngwill change the behavior ofthe function unless the argument is already an instance of
numpy.random.Generator.Effective in SciPy
1.15.0:rngargument has been added to the following functions:scipy.cluster.vq.kmeans,scipy.cluster.vq.kmeans2,scipy.interpolate.BarycentricInterpolator,scipy.interpolate.barycentric_interpolate,scipy.linalg.clarkson_woodruff_transform,scipy.optimize.basinhopping,scipy.optimize.differential_evolution,scipy.optimize.dual_annealing,scipy.optimize.check_grad,scipy.optimize.quadratic_assignment,scipy.sparse.random,scipy.sparse.random_array,scipy.sparse.rand,scipy.sparse.linalg.svds,scipy.spatial.transform.Rotation.random,scipy.spatial.distance.directed_hausdorff,scipy.stats.goodness_of_fit,scipy.stats.BootstrapMethod,scipy.stats.PermutationMethod,scipy.stats.bootstrap,scipy.stats.permutation_test,scipy.stats.dunnett, allscipy.stats.qmcclasses that consume random numbers, andscipy.stats.sobol_indices.rngargument will follow the SPEC 7standard behavior: the argument will be normalized with
np.random.default_rngbefore being used.will remain unchanged (for now).
It is planned that in
1.17.0the legacy argument will start emittingwarnings, and that in
1.19.0the default behavior will change.In all cases, users can avoid future disruption by proactively passing
an instance of
np.random.Generatorby keywordrng. For details,see SPEC-7.
The SciPy build no longer adds
-std=legacyfor Fortran code,except when using Gfortran. This avoids problems with the new Flang and
AMD Fortran compilers. It may make new build warnings appear for other
compilers - if so, please file an issue.
scipy.signal.sosfreqzhas been renamed toscipy.signal.freqz_sos.New code should use the new name. The old name is maintained as an alias for
backwards compatibility.
Testing thread-safety improvements related to Python
3.13thave beenmade in:
scipy.special,scipy.spatial,scipy.sparse,scipy.interpolate.Authors (commits)
A total of 149 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.14.1Compare Source
SciPy 1.14.1 Release Notes
SciPy
1.14.1adds support for Python3.13, including binarywheels on PyPI. Apart from that, it is a bug-fix release with
no new features compared to
1.14.0.Authors
A total of 17 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.14.0Compare Source
SciPy 1.14.0 Release Notes
SciPy
1.14.0is the culmination of 3 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.14.x branch, and on adding new features on the main branch.
This release requires Python
3.10+and NumPy1.23.5or greater.For running on PyPy, PyPy3
6.0+is required.Highlights of this release
has wheels built against Accelerate for macOS >=14 resulting in significant
performance improvements for many linear algebra operations.
cobyqa, has been added toscipy.optimize.minimize- thisis an interface for COBYQA (Constrained Optimization BY Quadratic
Approximations), a derivative-free optimization solver, designed to
supersede COBYLA, developed by the Department of Applied Mathematics, The
Hong Kong Polytechnic University.
scipy.sparse.linalg.spsolve_triangularis now more than an order ofmagnitude faster in many cases.
New features
scipy.fftimprovementsscipy.fft.prev_fast_len, has been added. This functionfinds the largest composite of FFT radices that is less than the target
length. It is useful for discarding a minimal number of samples before FFT.
scipy.ioimprovementswavfilenow supports reading and writing ofwavfiles in the RF64format, allowing files greater than 4 GB in size to be handled.
scipy.constantsimprovementsscipy.interpolateimprovementsscipy.interpolate.Akima1DInterpolatornow supports extrapolation via theextrapolateargument.scipy.optimizeimprovementsscipy.optimize.HessianUpdateStrategynow also accepts square arrays forinit_scale.cobyqa, has been added toscipy.optimize.minimize- thisis an interface for COBYQA (Constrained Optimization BY Quadratic
Approximations), a derivative-free optimization solver, designed to
supersede COBYLA, developed by the Department of Applied Mathematics, The
Hong Kong Polytechnic University.
scipy.optimize.differential_evolution.scipy.optimize.approx_fprimenow has linear space complexity.scipy.signalimprovementsscipy.signal.minimum_phasehas a new argumenthalf, allowing theprovision of a filter of the same length as the linear-phase FIR filter
coefficients and with the same magnitude spectrum.
scipy.sparseimprovementsThese are all the formats we currently intend to support 1D shapes.
Other sparse array formats raise an exception for 1D input.
Results are still COO format sparse arrays for min/nanmin and
dense
np.ndarrayfor argmin.csr_arrayorcsc_arrayyields 1D (CSC) arrays.reprandstroutput.dia_arrayby ascalar, which avoids a potentially costly conversion to CSR format.
scipy.sparse.csgraph.yenhas been added, allowing usage of Yen's K-ShortestPaths algorithm on a directed on undirected graph.
scipy.sparse.linalg.spsolve_triangularis now more than an order ofmagnitude faster in many cases.
scipy.spatialimprovementsRotationsupports an alternative "scalar-first" convention of quaternioncomponent ordering. It is available via the keyword argument
scalar_firstof
from_quatandas_quatmethods.Rotationobjects.scipy.specialimprovementsscipy.special.log_wright_bessel, for calculation of the logarithm ofWright's Bessel function.
scipy.special.hyp2f1calculations has improvedsubstantially.
boxcox,inv_boxcox,boxcox1p, andinv_boxcox1pby preventing premature overflow.scipy.statsimprovementsscipy.stats.powercan be used for simulating the powerof a hypothesis test with respect to a specified alternative.
scipy.stats.irwinhall.scipy.stats.mannwhitneyuare much fasterand use less memory.
scipy.stats.pearsonrnow accepts n-D arrays and computes the statisticalong a specified
axis.scipy.stats.kstat,scipy.stats.kstatvar, andscipy.stats.bartlettare faster at performing calculations along an axis of a large n-D array.
Array API Standard Support
Experimental support for array libraries other than NumPy has been added to
existing sub-packages in recent versions of SciPy. Please consider testing
these features by setting an environment variable
SCIPY_ARRAY_API=1andproviding PyTorch, JAX, or CuPy arrays as array arguments.
As of 1.14.0, there is support for
scipy.clusterscipy.fftscipy.constantsscipy.special: (select functions)scipy.special.log_ndtrscipy.special.ndtrscipy.special.ndtriscipy.special.erfscipy.special.erfcscipy.special.i0scipy.special.i0escipy.special.i1scipy.special.i1escipy.special.gammalnscipy.special.gammaincscipy.special.gammainccscipy.special.logitscipy.special.expitscipy.special.entrscipy.special.rel_entrscipy.special.xlogyscipy.special.chdtrcscipy.stats: (select functions)scipy.stats.describescipy.stats.momentscipy.stats.skewscipy.stats.kurtosisscipy.stats.kstatscipy.stats.kstatvarscipy.stats.circmeanscipy.stats.circvarscipy.stats.circstdscipy.stats.entropyscipy.stats.variationscipy.stats.semscipy.stats.ttest_1sampscipy.stats.pearsonrscipy.stats.chisquarescipy.stats.skewtestscipy.stats.kurtosistestscipy.stats.normaltestscipy.stats.jarque_berascipy.stats.bartlettscipy.stats.power_divergencescipy.stats.monte_carlo_testDeprecated features
scipy.stats.gstd,scipy.stats.chisquare, andscipy.stats.power_divergencehave deprecated support for masked arrayinput.
scipy.stats.linregresshas deprecated support for specifying both samplesin one argument;
xandyare to be provided as separate arguments.conjtranspmethod forscipy.sparse.dok_arrayandscipy.sparse.dok_matrixhas been deprecated and will be removed in SciPy1.16.0.
quadrature="trapz"inscipy.integrate.quad_vechas beendeprecated in favour of
quadrature="trapezoid"and will be removed inSciPy 1.16.0.
scipy.special.{comb,perm}have deprecated support for use ofexact=Trueinconjunction with non-integral
Nand/ork.Backwards incompatible changes
scipy.statsfunctions now produce a standardized warning message whenan input sample is too small (e.g. zero size). Previously, these functions
may have raised an error, emitted one or more less informative warnings, or
emitted no warnings. In most cases, returned results are unchanged; in almost
all cases the correct result is
NaN.Expired deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
Several previously deprecated methods for sparse arrays were removed:
asfptype,getrow,getcol,get_shape,getmaxprint,set_shape,getnnz, andgetformat. Additionally, the.Aand.Hattributes were removed.scipy.integrate.{simps,trapz,cumtrapz}have been removed in favour ofsimpson,trapezoid, andcumulative_trapezoid.The
tolargument ofscipy.sparse.linalg.{bcg,bicstab,cg,cgs,gcrotmk, mres,lgmres,minres,qmr,tfqmr}has been removed in favour ofrtol.Furthermore, the default value of
atolfor these functions has changedto
0.0.The
restrtargument ofscipy.sparse.linalg.gmreshas been removed infavour of
restart.The
initial_lexsortargument ofscipy.stats.kendalltauhas beenremoved.
The
condandrcondarguments ofscipy.linalg.pinvhave beenremoved.
The
evenargument ofscipy.integrate.simpsonhas been removed.The
turboandeigvalsarguments fromscipy.linalg.{eigh,eigvalsh}have been removed.
The
legacyargument ofscipy.special.combhas been removed.The
hz/nyqargument ofsignal.{firls, firwin, firwin2, remez}hasbeen removed.
Objects that weren't part of the public interface but were accessible through
deprecated submodules have been removed.
float128,float96, and object arrays now raise an error inscipy.signal.medfiltandscipy.signal.order_filter.scipy.interpolate.interp2dhas been replaced by an empty stub (to beremoved completely in the future).
Coinciding with changes to function signatures (e.g. removal of a deprecated
keyword), we had deprecated positional use of keyword arguments for the
affected functions, which will now raise an error. Affected functions are:
sparse.linalg.{bicg, bicgstab, cg, cgs, gcrotmk, gmres, lgmres, minres, qmr, tfqmr}stats.kendalltaulinalg.pinvintegrate.simpsonlinalg.{eigh,eigvalsh}special.combsignal.{firls, firwin, firwin2, remez}Other changes
standard remains C++17.
This results in significant performance improvements for linear algebra
operations, as well as smaller binary wheels.
to run the cross interpreter.
parts of SciPy.
Authors
A total of 85 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.13.1Compare Source
SciPy 1.13.1 Release Notes
SciPy
1.13.1is a bug-fix release with no new featurescompared to
1.13.0. The version of OpenBLAS shipped withthe PyPI binaries has been increased to
0.3.27.Authors
A total of 19 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.13.0Compare Source
SciPy 1.13.0 Release Notes
SciPy
1.13.0is the culmination of 3 months of hard work. Thisout-of-band release aims to support NumPy
2.0.0, and is backwardscompatible to NumPy
1.22.4. The version of OpenBLAS used to buildthe PyPI wheels has been increased to
0.3.26.dev.This release requires Python 3.9+ and NumPy 1.22.4 or greater.
For running on PyPy, PyPy3 6.0+ is required.
Highlights of this release
2.0.0.to run the examples locally on embedded Jupyterlite notebooks in their
browser.
scipy.statsfunctions have gained support for additionalaxis,nan_policy, andkeepdimsarguments.scipy.statsalsohas several performance and accuracy improvements.
New features
scipy.integrateimprovementsterminalattribute ofscipy.integrate.solve_ivpeventscallables now additionally accepts integer values to specify a number
of occurrences required for termination, rather than the previous restriction
of only accepting a
boolvalue to terminate on the first registeredevent.
scipy.ioimprovementsscipy.io.wavfile.writehas improveddtypeinput validation.scipy.interpolateimprovementsinterpolate.Akima1DInterpolator, available via the newmethodargument.
BSpline.insert_knotinserts a knot into aBSplineinstance.This routine is similar to the module-level
scipy.interpolate.insertfunction, and works with the BSpline objects instead of
tcktuples.RegularGridInterpolatorgained the functionality to compute derivativesin place. For instance,
RegularGridInterolator((x, y), values, method="cubic")(xi, nu=(1, 1))evaluates the mixed second derivative,:math:
\partial^2 / \partial x \partial yatxi.RegularGridInterpolatorhave been changed: evaluations should besignificantly faster, while construction might be slower. If you experience
issues with construction times, you may need to experiment with optional
keyword arguments
solverandsolver_args. Previous behavior (fastconstruction, slow evaluations) can be obtained via
"*_legacy"methods:method="cubic_legacy"is exactly equivalent tomethod="cubic"inprevious releases. See
gh-19633for details.scipy.signalimprovementssampling frequency (
fs).scipy.sparseimprovementscoo_arraynow supports 1D shapes, and has additional 1D support formin,max,argmin, andargmax. The DOK format now haspreliminary 1D support as well, though only supports simple integer indices
at the time of writing.
pydata/sparsearray inputs toscipy.sparse.csgraph.dok_arrayanddok_matrixnow have proper implementations offromkeys.csrandcscformats now have improvedsetdiagperformance.scipy.spatialimprovementsvoronoi_plot_2dnow draws Voronoi edges to infinity more clearlywhen the aspect ratio is skewed.
scipy.specialimprovementsAMOS,specfun, andcdfliblibrariesthat the majority of special functions depend on, is ported to Cython/C.
factorialknow also supports faster, approximatecalculation using
exact=False.scipy.statsimprovementsscipy.stats.rankdataandscipy.stats.wilcoxonhave been vectorized,improving their performance and the performance of hypothesis tests that
depend on them.
stats.mannwhitneyushould now be faster due to a vectorized statisticcalculation, improved caching, improved exploitation of symmetry, and a
memory reduction.
PermutationMethodsupport was also added.scipy.stats.moodnow hasnan_policyandkeepdimssupport.scipy.stats.brunnermunzelnow hasaxisandkeepdimssupport.scipy.stats.friedmanchisquare,scipy.stats.shapiro,scipy.stats.normaltest,scipy.stats.skewtest,scipy.stats.kurtosistest,scipy.stats.f_oneway,scipy.stats.alexandergovern,scipy.stats.combine_pvalues, andscipy.stats.kstesthave gainedaxis,nan_policyandkeepdimssupport.scipy.stats.boxcox_normmaxhas gained aymaxparameter to allow userspecification of the maximum value of the transformed data.
scipy.stats.vonmisespdfmethod has been extended to supportkappa=0. Thefitmethod is also more performant due to the use ofnon-trivial bounds to solve for
kappa.momentcalculations forscipy.stats.powerlaware now moreaccurate.
fitmethods ofscipy.stats.gamma(withmethod='mm') andscipy.stats.loglaplaceare faster and more reliable.scipy.stats.goodness_of_fitnow supports the use of a customstatisticprovided by the user.
scipy.stats.wilcoxonnow supportsPermutationMethod, enablingcalculation of accurate p-values in the presence of ties and zeros.
scipy.stats.monte_carlo_testnow has improved robustness in the face ofnumerical noise.
scipy.stats.wasserstein_distance_ndwas introduced to compute theWasserstein-1 distance between two N-D discrete distributions.
Deprecated features
PchipInterpolatorandAkima1DInterpolatorhavebeen deprecated and will raise an error in SciPy 1.15.0. If you are trying
to use the real components of the passed array, use
np.realony.ntogether withexact=Trueare deprecated forscipy.special.factorial.Expired Deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
scipy.signal.{lsim2,impulse2,step2}have been removed in favour ofscipy.signal.{lsim,impulse,step}.scipy.signalnamespace andinstead should be accessed through either
scipy.signal.windowsorscipy.signal.get_window.scipy.sparseno longer supports multi-Ellipsis indexingscipy.signal.{bspline,quadratic,cubic}have been removed in favour of alternativesin
scipy.interpolate.scipy.linalg.tri{,u,l}have been removed in favour ofnumpy.tri{,u,l}.scipy.special.factorialwithexact=Truenow raise anerror.
namespace, such as
numpy.histogramexposed byscipy.histogram, havebeen removed from SciPy's main namespace. Please use the functions directly
from
numpy. This was originally performed for SciPy 1.12.0 however was missed fromthe release notes so is included here for completeness.
Backwards incompatible changes
Other changes
scipy.stats.momenthas been renamed toorderwhile maintaining backward compatibility.
Authors
A total of 96 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.12.0Compare Source
SciPy 1.12.0 Release Notes
SciPy
1.12.0is the culmination of6months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.12.x branch, and on adding new features on the main branch.
This release requires Python
3.9+and NumPy1.22.4or greater.For running on PyPy, PyPy3
6.0+is required.Highlights of this release
scipy.special, and to all ofscipy.fftandscipy.cluster. There arelikely to be bugs and early feedback for usage with CuPy arrays, PyTorch
tensors, and other array API compatible libraries is appreciated. Use the
SCIPY_ARRAY_APIenvironment variable for testing.ShortTimeFFT, provides a more versatile implementation of theshort-time Fourier transform (STFT), its inverse (ISTFT) as well as the (cross-)
spectrogram. It utilizes an improved algorithm for calculating the ISTFT.
now additionally support sparse arrays, further facilitating the migration
from sparse matrices.
scipy.statsAPI now has improved support for handlingNaNvalues, masked arrays, and more fine-grained shape-handling. Theaccuracy and performance of a number of
statsmethods have been improved,and a number of new statistical tests and distributions have been added.
New features
scipy.clusterimprovementsCuPy arrays and array API compatible array libraries are now accepted
(GPU support is limited to functions with pure Python implementations).
CPU arrays which can be converted to and from NumPy are supported
module-wide and returned arrays will match the input type.
This behaviour is enabled by setting the
SCIPY_ARRAY_APIenvironmentvariable before importing
scipy. This experimental support is stillunder development and likely to contain bugs - testing is very welcome.
scipy.fftimprovementspart of the
fftarray API standard extension module, as well as theFast Hankel Transforms and the basic FFTs which are not in the extension
module, now accept PyTorch tensors, CuPy arrays and array API compatible
array libraries. CPU arrays which can be converted to and from NumPy arrays
are supported module-wide and returned arrays will match the input type.
This behaviour is enabled by setting the
SCIPY_ARRAY_APIenvironmentvariable before importing
scipy. This experimental support is still underdevelopment and likely to contain bugs - testing is very welcome.
scipy.integrateimprovementsscipy.integrate.cumulative_simpsonfor cumulative quadraturefrom sampled data using Simpson's 1/3 rule.
scipy.interpolateimprovementsNdBSplinerepresents tensor-product splines in N dimensions.This class only knows how to evaluate a tensor product given coefficients
and knot vectors. This way it generalizes
BSplinefor 1D data to N-D, andparallels
NdPPoly(which represents N-D tensor product polynomials).Evaluations exploit the localized nature of b-splines.
NearestNDInterpolator.__call__accepts**query_options, which arepassed through to the
KDTree.querycall to find nearest neighbors. Thisallows, for instance, to limit the neighbor search distance and parallelize
the query using the
workerskeyword.BarycentricInterpolatornow allows computing the derivatives.CloughTocher2DInterpolatorinstance, while also saving the barycentriccoordinates of interpolation points.
scipy.linalgimprovementsdtgsylandstgsyl.scipy.optimizeimprovementsscipy.optimize.isotonic_regressionhas been added to allow nonparametric isotonicregression.
scipy.optimize.nnlsis rewritten in Python and now implements the so-calledfnnls or fast nnls, making it more efficient for high-dimensional problems.
scipy.optimize.rootandscipy.optimize.root_scalarnow reports the method used.
callbackmethod ofscipy.optimize.differential_evolutioncan now bepassed more detailed information via the
intermediate_resultskeywordparameter. Also, the evolution
strategynow accepts a callable foradditional customization. The performance of
differential_evolutionhasalso been improved.
scipy.optimize.minimizemethodNewton-CGnow supports functions thatreturn sparse Hessian matrices/arrays for the
hessparameter and is slightlymore efficient.
scipy.optimize.minimizemethodBFGSnow accepts an initial estimate for theinverse of the Hessian, which allows for more efficient workflows in some
circumstances. The new parameter is
hess_inv0.scipy.optimize.minimizemethodsCG,Newton-CG, andBFGSnow acceptparameters
c1andc2, allowing specification of the Armijo and curvature ruleparameters, respectively.
scipy.optimize.curve_fitperformance has improved due to more efficient memoizationof the callable function.
scipy.signalimprovementsfreqz,freqz_zpk, andgroup_delayare now more accuratewhen
fshas a default value.ShortTimeFFTprovides a more versatile implementation of theshort-time Fourier transform (STFT), its inverse (ISTFT) as well as the (cross-)
spectrogram. It utilizes an improved algorithm for calculating the ISTFT based on
dual windows and provides more fine-grained control of the parametrization especially
in regard to scaling and phase-shift. Functionality was implemented to ease
working with signal and STFT chunks. A section has been added to the "SciPy User Guide"
providing algorithmic details. The functions
stft,istftandspectrogramhave been marked as legacy.
scipy.sparseimprovementssparse.linalgiterative solverssparse.linalg.cg,sparse.linalg.cgs,sparse.linalg.bicg,sparse.linalg.bicgstab,sparse.linalg.gmres, andsparse.linalg.qmrare rewritten in Python.6.0.1, along with a few additionalfixes.
eye_array,random_array,block_array, andidentity.kronandkronsumhave been adjusted to additionally support operation on sparse arrays.
axes=(1, 0), to mirrorthe
.Tmethod.LaplacianNdnow allows selection of the largest subset of eigenvalues,and additionally now supports retrieval of the corresponding eigenvectors.
The performance of
LaplacianNdhas also been improved.dok_matrixanddok_arrayhas been improved,and their inheritance behavior should be more robust.
hstack,vstack, andblock_diagnow work with sparse arrays, andpreserve the input sparse type.
scipy.sparse.linalg.matrix_power, has been added, allowingfor exponentiation of sparse arrays.
scipy.spatialimprovementsspatial.transform.Rotation:__pow__to raise a rotation to integer or fractional power andapprox_equalto check if two rotations are approximately equal.Rotation.align_vectorswas extended to solve a constrainedalignment problem where two vectors are required to be aligned precisely.
Also when given a single pair of vectors, the algorithm now returns the
rotation with minimal magnitude, which can be considered as a minor
backward incompatible change.
spatial.transform.Rotationcalled Davenportangles is available through
from_davenportandas_davenportmethods.distance.hamminganddistance.correlation.SphericalVoronoisort_vertices_of_regionsand two dimensional area calculations.
scipy.specialimprovementsscipy.special.stirling2for computation of Stirling numbers of thesecond kind. Both exact calculation and an asymptotic approximation
(the default) are supported via
exact=Trueandexact=False(thedefault) respectively.
scipy.special.betainccfor computation of the complementaryincomplete Beta function and
scipy.special.betainccinvfor computation ofits inverse.
scipy.special.betaincandscipy.special.betaincinv.scipy.special.log_ndtr,scipy.special.ndtr,scipy.special.ndtri,scipy.special.erf,scipy.special.erfc,scipy.special.i0,scipy.special.i0e,scipy.special.i1,scipy.special.i1e,scipy.special.gammaln,scipy.special.gammainc,scipy.special.gammaincc,scipy.special.logit, andscipy.special.expitnow accept PyTorch tensorsand CuPy arrays. These features are still under development and likely to
contain bugs, so they are disabled by default; enable them by setting a
SCIPY_ARRAY_APIenvironment variable to1before importingscipy.Testing is appreciated!
scipy.statsimprovementsscipy.stats.quantile_test, a nonparametric test of whether ahypothesized value is the quantile associated with a specified probability.
The
confidence_intervalmethod of the result object gives a confidenceinterval of the quantile.
scipy.stats.sampling.FastGeneratorInversionprovides a convenientinterface to fast random sampling via numerical inversion of distribution
CDFs.
scipy.stats.geometric_discrepancyadds geometric/topological discrepancymetrics for random samples.
scipy.stats.multivariate_normalnow has afitmethod for fittingdistribution parameters to data via maximum likelihood estimation.
scipy.stats.bws_testperforms the Baumgartner-Weiss-Schindler test ofwhether two-samples were drawn from the same distribution.
scipy.stats.jf_skew_timplements the Jones and Faddy skew-t distribution.scipy.stats.anderson_ksampnow supports a permutation version of the testusing the
methodparameter.fitmethods ofscipy.stats.halfcauchy,scipy.stats.halflogistic, andscipy.stats.halfnormare faster and more accurate.scipy.stats.betaentropyaccuracy has been improved for extreme values ofdistribution parameters.
sfand/orisfmethods have been improved forseveral distributions:
scipy.stats.burr,scipy.stats.hypsecant,scipy.stats.kappa3,scipy.stats.loglaplace,scipy.stats.lognorm,scipy.stats.lomax,scipy.stats.pearson3,scipy.stats.rdist, andscipy.stats.pareto.axis,nan_policy, andkeep_dims:scipy.stats.entropy,scipy.stats.differential_entropy,scipy.stats.variation,scipy.stats.ansari,scipy.stats.bartlett,scipy.stats.levene,scipy.stats.fligner,scipy.stats.circmean,scipy.stats.circvar,scipy.stats.circstd,scipy.stats.tmean,scipy.stats.tvar,scipy.stats.tstd,scipy.stats.tmin,scipy.stats.tmax,and
scipy.stats.tsem.logpdfandfitmethods ofscipy.stats.skewnormhave been improved.scipy.stats.betanbinom.scipy.stats.invwishartrvsandlogpdf.scipy.stats.boxcox_normmaxwithmethod='mle'has been eliminated, and the returned value oflmbdaisconstrained such that the transformed data will not overflow.
scipy.stats.nakagamistatsis more accurate and reliable.scipy.norminvgauss.pdfhas been eliminated.scipy.stats.circmean,scipy.stats.circvar,scipy.stats.circstd, andscipy.stats.entropy.scipy.stats.dirichlethas gained a new covariance (cov) method.entropymethod ofscipy.stats.multivariate_tfor largedegrees of freedom.
scipy.stats.loggammahas an improvedentropymethod.Deprecated features
Error messages have been made clearer for objects that don't exist in the
public namespace and warnings sharpened for private attributes that are not
supposed to be imported at all.
scipy.signal.cmplx_sorthas been deprecated and will be removed inSciPy 1.15. A replacement you can use is provided in the deprecation message.
Values the the argument
initialofscipy.integrate.cumulative_trapezoidother than
0andNoneare now deprecated.scipy.stats.rvs_ratio_uniformsis deprecated in favour ofscipy.stats.sampling.RatioUniformsscipy.integrate.quadratureandscipy.integrate.romberghave beendeprecated due to accuracy issues and interface shortcomings. They will
be removed in SciPy 1.15. Please use
scipy.integrate.quadinstead.Coinciding with upcoming changes to function signatures (e.g. removal of a
deprecated keyword), we are deprecating positional use of keyword arguments
for the affected functions, which will raise an error starting with
SciPy 1.14. In some cases, this has delayed the originally announced
removal date, to give time to respond to the second part of the deprecation.
Affected functions are:
linalg.{eigh, eigvalsh, pinv}integrate.simpsonsignal.{firls, firwin, firwin2, remez}sparse.linalg.{bicg, bicgstab, cg, cgs, gcrotmk, gmres, lgmres, minres, qmr, tfqmr}special.combstats.kendalltauAll wavelet functions have been deprecated, as PyWavelets provides suitable
implementations; affected functions are:
signal.{daub, qmf, cascade, morlet, morlet2, ricker, cwt}scipy.integrate.trapz,scipy.integrate.cumtrapz, andscipy.integrate.simpshavebeen deprecated in favour of
scipy.integrate.trapezoid,scipy.integrate.cumulative_trapezoid,and
scipy.integrate.simpsonrespectively and will be removed in SciPy 1.14.The
tolargument ofscipy.sparse.linalg.{bcg,bicstab,cg,cgs,gcrotmk,gmres,lgmres,minres,qmr,tfqmr}is now deprecated in favour of
rtoland will be removed in SciPy 1.14.Furthermore, the default value of
atolfor these functions is dueto change to
0.0in SciPy 1.14.Expired Deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
centeredkeyword ofscipy.stats.qmc.LatinHypercubehas been removed.Use
scrambled=Falseinstead ofcentered=True.scipy.stats.binom_testhas been removed in favour ofscipy.stats.binomtest.scipy.stats.iqr, the use ofscale='raw'has been removed in favourof
scale=1.namespace, such as
numpy.histogramexposed byscipy.histogram, havebeen removed from SciPy's main namespace. Please use the functions directly
from
numpy.Backwards incompatible changes
Other changes
show_config.Authors
A total of 163 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.4Compare Source
SciPy 1.11.4 Release Notes
SciPy
1.11.4is a bug-fix release with no new featurescompared to
1.11.3.Authors
A total of 9 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.3Compare Source
SciPy 1.11.3 Release Notes
SciPy
1.11.3is a bug-fix release with no new featurescompared to
1.11.2.Authors
A total of 17 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.2Compare Source
SciPy 1.11.2 Release Notes
SciPy
1.11.2is a bug-fix release with no new featurescompared to
1.11.1. Python3.12and musllinux wheelsare provided with this release.
Authors
A total of 18 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.1Compare Source
SciPy 1.11.1 Release Notes
SciPy
1.11.1is a bug-fix release with no new featurescompared to
1.11.0. In particular, a licensing issuediscovered after the release of
1.11.0has been addressed.Authors
A total of 4 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.0Compare Source
SciPy 1.11.0 Release Notes
SciPy
1.11.0is the culmination of 6 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.11.x branch, and on adding new features on the main branch.
This release requires Python
3.9+and NumPy1.21.6or greater.For running on PyPy, PyPy3
6.0+is required.Highlights of this release
scipy.sparsearray API improvements, includingsparse.sparray, a newpublic base class distinct from the older
sparse.spmatrixclass,proper 64-bit index support, and numerous deprecations paving the way to a
modern sparse array experience.
scipy.statsadded tools for survival analysis, multiple hypothesis testing,sensitivity analysis, and working with censored data.
algebra functions
detandlunow accept nD-arrays.axesargument was added broadly tondimagefunctions, facilitatinganalysis of stacked image data.
New features
scipy.integrateimprovementsscipy.integrate.qmc_quadfor quasi-Monte Carlo integration.scipy.integrate.simpsonnow calculatesa parabolic segment over the last three points which gives improved
accuracy over the previous implementation.
scipy.clusterimprovementsdisjoint_sethas a new methodsubset_sizefor providing the sizeof a particular subset.
scipy.constantsimprovementsquetta,ronna,ronto, andquectoSI prefixes were added.scipy.linalgimprovementsscipy.linalg.detis improved and now accepts nD-arrays.scipy.linalg.luis improved and now accepts nD-arrays. With the newp_indicesswitch the output permutation argument can be 1D(n,)permutation index instead of the full
(n, n)array.scipy.ndimageimprovementsaxesargument was added torank_filter,percentile_filter,median_filter,uniform_filter,minimum_filter,maximum_filter, andgaussian_filter, which can be useful forprocessing stacks of image data.
scipy.optimizeimprovementsscipy.optimize.linprognow passes unrecognized options directly to HiGHS.scipy.optimize.root_scalarnow uses Newton's method to be used withoutproviding
fprimeand thesecantmethod to be used without a secondguess.
scipy.optimize.lsq_linearnow acceptsboundsarguments of typescipy.optimize.Bounds.scipy.optimize.minimizemethod='cobyla'now supports simple boundconstraints.
scipy.optimize.minimize: If the provided callback callable acceptsa single keyword argument,
intermediate_result,scipy.optimize.minimizenow passes both the current solution and the optimal value of the objective
function to the callback as an instance of
scipy.optimize.OptimizeResult.It also allows the user to terminate optimization by raising a
StopIterationexception from the callback function.scipy.optimize.minimizewill return normally, and the latest solutioninformation is provided in the result object.
scipy.optimize.curve_fitnow supports an optionalnan_policyargument.scipy.optimize.shgonow has parallelization with theworkersargument,symmetry arguments that can improve performance, class-based design to
improve usability, and generally improved performance.
scipy.signalimprovementsistfthas an improved warning message when the NOLA condition fails.scipy.sparseimprovementsscipy.sparse.sparraywas introduced, allowing furtherextension of the sparse array API (such as the support for 1-dimensional
sparse arrays) without breaking backwards compatibility.
isinstance(x, scipy.sparse.sparray)to select the new sparse array classes,while
isinstance(x, scipy.sparse.spmatrix)selects only the old sparsematrix classes.
scipy.sparse.isspmatrixnow only returnsTruefor the sparse matrices instances.scipy.sparse.issparsenow has to be used instead to check for instances of sparsearrays or instances of sparse matrices.
downcast to int32.
argminandargmaxmethods now return the correct result when explicitzeros are present.
scipy.sparse.linalgimprovementsLinearOperatorby a number now returns a_ScaledLinearOperatorLinearOperatornow supports right multiplication by arrayslobpcgshould be more efficient following removal of an extraneousQR decomposition.
scipy.spatialimprovementswhich will see substantial performance improvements, though a few minor
regressions are known. These are focused on distances between boolean
arrays.
scipy.specialimprovementsfactorial,factorial2andfactorialkwere made consistent in their behavior (in terms of dimensionality,
errors etc.). Additionally,
factorial2can now handle arrays withexact=True, andfactorialkcan handle arrays.scipy.statsimprovementsNew Features
scipy.stats.sobol_indices, a method to compute Sobol' sensitivity indices.scipy.stats.dunnett, which performs Dunnett's test of the means of multipleexperimental groups against the mean of a control group.
scipy.stats.ecdffor computing the empirical CDF and complementaryCDF (survival function / SF) from uncensored or right-censored data. This
function is also useful for survival analysis / Kaplan-Meier estimation.
scipy.stats.logrankto compare survival functions underlying samples.scipy.stats.false_discovery_controlfor adjusting p-values to control thefalse discovery rate of multiple hypothesis tests using the
Benjamini-Hochberg or Benjamini-Yekutieli procedures.
scipy.stats.CensoredDatato represent censored data. It can be used asinput to the
fitmethod of univariate distributions and to the newecdffunction.method='Filliben'ofscipy.stats.goodness_of_fit.scipy.stats.ttest_indhas a new method,confidence_intervalforcomputing a confidence interval of the difference between means.
scipy.stats.MonteCarloMethod,scipy.stats.PermutationMethod, andscipy.stats.BootstrapMethodare new classes to configure resampling and/orMonte Carlo versions of hypothesis tests. They can currently be used with
scipy.stats.pearsonr.Statistical Distributions
Added the von-Mises Fisher distribution as
scipy.stats.vonmises_fisher.This distribution is the most common analogue of the normal distribution
on the unit sphere.
Added the relativistic Breit-Wigner distribution as
scipy.stats.rel_breitwigner.It is used in high energy physics to model resonances.
Added the Dirichlet multinomial distribution as
scipy.stats.dirichlet_multinomial.Improved the speed and precision of several univariate statistical
distributions.
scipy.stats.anglitsfscipy.stats.betaentropyscipy.stats.betaprimecdf,sf,ppfscipy.stats.chientropyscipy.stats.chi2entropyscipy.stats.dgammaentropy,cdf,sf,ppf, andisfscipy.stats.dweibullentropy,sf, andisfscipy.stats.exponweibsfandisfscipy.stats.fentropyscipy.stats.foldcauchysfscipy.stats.foldnormcdfandsfscipy.stats.gammaentropyscipy.stats.genexponppf,isf,rvsscipy.stats.gengammaentropyscipy.stats.geomentropyscipy.stats.genlogisticentropy,logcdf,sf,ppf,and
isfscipy.stats.genhyperboliccdfandsfscipy.stats.gibratsfandisfscipy.stats.gompertzentropy,sf. andisfscipy.stats.halflogisticsf, andisfscipy.stats.halfcauchysfandisfscipy.stats.halfnormcdf,sf, andisfscipy.stats.invgammaentropyscipy.stats.invgaussentropyscipy.stats.johnsonsbpdf,cdf,sf,ppf, andisfscipy.stats.johnsonsupdf,sf,isf, andstatsscipy.stats.lognormfitscipy.stats.loguniformentropy,logpdf,pdf,cdf,ppf,and
statsscipy.stats.maxwellsfandisfscipy.stats.nakagamientropyscipy.stats.powerlawsfscipy.stats.powerlognormlogpdf,logsf,sf, andisfscipy.stats.powernormsfandisfscipy.stats.tentropy,logpdf, andpdfscipy.stats.truncexponsf, andisfscipy.stats.truncnormentropyscipy.stats.truncparetofitscipy.stats.vonmisesfitscipy.stats.multivariate_tnow hascdfandentropymethods.scipy.stats.multivariate_normal,scipy.stats.matrix_normal, andscipy.stats.invwishartnow have anentropymethod.Other Improvements
scipy.stats.monte_carlo_testnow supports multi-sample statistics.scipy.stats.bootstrapcan now produce one-sided confidence intervals.scipy.stats.rankdataperformance was improved formethod=ordinalandmethod=dense.scipy.stats.momentnow supports non-central moment calculation.scipy.stats.andersonnow supports theweibull_mindistribution.scipy.stats.semandscipy.stats.iqrnow supportaxis,nan_policy,and masked array input.
Deprecated features
be removed in SciPy 1.13.
asfptype,getrow,getcol,get_shape,getmaxprint,set_shape,getnnz, andgetformat. Additionally, the.Aand.Hattributes were deprecated. Sparse matrix types are not affected.
scipy.linalgfunctionstri,triu&trilare deprecated andwill be removed in SciPy 1.13. Users are recommended to use the NumPy
versions of these functions with identical names.
scipy.signalfunctionsbspline,quadratic&cubicaredeprecated and will be removed in SciPy 1.13. Users are recommended to use
scipy.interpolate.BSplineinstead.evenkeyword ofscipy.integrate.simpsonis deprecated and will beremoved in SciPy 1.13.0. Users should leave this as the default as this
gives improved accuracy compared to the other methods.
exact=Truewhen passing integers in a float array tofactorialis deprecated and will be removed in SciPy 1.13.0.
scipy.signal.medfiltandscipy.signal.order_filterscipy.signal.{lsim2, impulse2, step2}had long beendeprecated in documentation only. They now raise a DeprecationWarning and
will be removed in SciPy 1.13.0.
scipy.windowhas been softdeprecated since SciPy 1.1.0. They now raise a
DeprecationWarningandwill be removed in SciPy 1.13.0. Users should instead import them from
scipy.signal.windowor use the convenience functionscipy.signal.get_window.Backwards incompatible changes
legacykeyword ofscipy.special.combhas changedfrom
TruetoFalse, as announced since its introduction.Expired Deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
nkeyword has been removed fromscipy.stats.moment.alphakeyword has been removed fromscipy.stats.interval.gilbratdistribution has been removed (usescipy.stats.gibrat).kulsinskidistance metric has beenremoved (use
scipy.spatial.distance.kulczynski1).verticeskeyword ofscipy.spatial.Delauney.qhullhas been removed(use simplices).
residualproperty ofscipy.sparse.csgraph.maximum_flowhas beenremoved (use
flow).extradockeyword ofscipy.stats.rv_continuous,scipy.stats.rv_discreteandscipy.stats.rv_samplehas been removed.sym_poskeyword ofscipy.linalg.solvehas been removed.scipy.optimize.minimizefunction now raises an error forx0withx0.ndim > 1.scipy.stats.mode, the default value ofkeepdimsis nowFalse,and support for non-numeric input has been removed.
scipy.signal.lsimdoes not support non-uniform time stepsanymore.
Other changes
Authors
A total of 134 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.10.1Compare Source
SciPy 1.10.1 Release Notes
SciPy
1.10.1is a bug-fix release with no new featurescompared to
1.10.0.Authors
A total of 21 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: poetry.lock
75794f6d47tob1e8095bacchore(deps): update dependency scipy to ~1.11to chore(deps): update dependency scipy to ~1.12b1e8095bacto630a860e5cchore(deps): update dependency scipy to ~1.12to chore(deps): update dependency scipy to ~1.13630a860e5cto772c57f812chore(deps): update dependency scipy to ~1.13to chore(deps): update dependency scipy to ~1.14772c57f812todd22690126chore(deps): update dependency scipy to ~1.14to chore(deps): update dependency scipy to ~1.15dd22690126to9eca2e361echore(deps): update dependency scipy to ~1.15to chore(deps): update dependency scipy to ~1.169eca2e361eto86f11272c4View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.