<div dir="ltr"><div>Hi all,<div><div><br></div>I'm excited to be able to announce the availability of the first release candidate of <span><span>Scipy</span></span>
1.0. This is a big release, and a version number that has been 16 years
in the making. It contains a few more deprecations and backwards
incompatible changes than an average release. Therefore please do test
it on your own code, and report any issues on the Github issue tracker
or on the <span><span>scipy</span></span>-dev mailing list.<br>
<br></div><div>Sources and binary wheels can be found at <a href="https://pypi.python.org/pypi/scipy">https://pypi.python.org/pypi/scipy</a> and <a href="https://github.com/scipy/scipy/releases/tag/v1.0.0rc1">https://github.com/scipy/scipy/releases/tag/v1.0.0rc1</a>. To install with pip:</div><div><br></div><div> pip install --pre --upgrade scipy<br></div><div><br></div><div>Thanks to everyone who contributed to this release!<br></div><div><br></div>Ralf<br></div><div><br></div><div><br></div><div><br></div><div></div><div>Pull requests merged after v1.0.0b1:</div><div><br></div><div>- `#7876 <<a href="https://github.com/scipy/scipy/pull/7876">https://github.com/scipy/scipy/pull/7876</a>>`__: GEN: Add comments to the tests for clarification<br>- `#7891 <<a href="https://github.com/scipy/scipy/pull/7891">https://github.com/scipy/scipy/pull/7891</a>>`__: ENH: backport #7879 to 1.0.x<br>- `#7902 <<a href="https://github.com/scipy/scipy/pull/7902">https://github.com/scipy/scipy/pull/7902</a>>`__: MAINT: signal: Make freqz handling of multidim. arrays match...<br>- `#7905 <<a href="https://github.com/scipy/scipy/pull/7905">https://github.com/scipy/scipy/pull/7905</a>>`__: REV: restore wminkowski<br>- `#7908 <<a href="https://github.com/scipy/scipy/pull/7908">https://github.com/scipy/scipy/pull/7908</a>>`__: FIX: Avoid bad ``__del__`` (close) behavior<br>- `#7918 <<a href="https://github.com/scipy/scipy/pull/7918">https://github.com/scipy/scipy/pull/7918</a>>`__: TST: mark two optimize.linprog tests as xfail. See gh-7877.<br>- `#7929 <<a href="https://github.com/scipy/scipy/pull/7929">https://github.com/scipy/scipy/pull/7929</a>>`__: MAINT: changed defaults to lower in sytf2, sytrf and hetrf<br>- `#7938 <<a href="https://github.com/scipy/scipy/pull/7938">https://github.com/scipy/scipy/pull/7938</a>>`__: MAINT: backports from 1.0.x<br>- `#7939 <<a href="https://github.com/scipy/scipy/pull/7939">https://github.com/scipy/scipy/pull/7939</a>>`__: Fix umfpack solver construction for win-amd64<br><br></div><div><br></div><br><br>==========================<br>SciPy 1.0.0 Release Notes<br>==========================<br><br>.. note:: Scipy 1.0.0 is not released yet!<br><br>.. contents::<br><br>SciPy 1.0.0 is the culmination of 8 months of hard work. It contains<br>many new features, numerous bug-fixes, improved test coverage and<br>better documentation. There have been a number of deprecations and<br>API changes in this release, which are documented below. All users<br>are encouraged to upgrade to this release, as there are a large number<br>of bug-fixes and optimizations. Moreover, our development attention<br>will now shift to bug-fix releases on the 1.0.x branch, and on adding<br>new features on the master branch.<br><br>Some of the highlights of this release are:<br><br>- Major build improvements. Windows wheels are available on PyPI for the<br> first time, and continuous integration has been set up on Windows and OS X<br> in addition to Linux.<br>- A set of new ODE solvers and a unified interface to them<br> (`scipy.integrate.solve_ivp`).<br>- Two new trust region optimizers and a new linear programming method, with<br> improved performance compared to what `scipy.optimize` offered previously.<br>- Many new BLAS and LAPACK functions were wrapped. The BLAS wrappers are now<br> complete.<br><br>This release requires Python 2.7 or 3.4+ and NumPy 1.8.2 or greater.<br><br>This is also the last release to support LAPACK 3.1.x - 3.3.x. Moving the<br>lowest supported LAPACK version to >3.2.x was long blocked by Apple Accelerate<br>providing the LAPACK 3.2.1 API. We have decided that it's time to either drop<br>Accelerate or, if there is enough interest, provide shims for functions added<br>in more recent LAPACK versions so it can still be used.<br><br><br>New features<br>============<br><br>`scipy.cluster` improvements<br>----------------------------<br><br>`scipy.cluster.hierarchy.optimal_leaf_ordering`, a function to reorder a<br>linkage matrix to minimize distances between adjacent leaves, was added.<br><br><br>`scipy.fftpack` improvements<br>----------------------------<br><br>N-dimensional versions of the discrete sine and cosine transforms and their<br>inverses were added as ``dctn``, ``idctn``, ``dstn`` and ``idstn``.<br><br><br>`scipy.integrate` improvements<br>------------------------------<br><br>A set of new ODE solvers have been added to `scipy.integrate`. The convenience<br>function `scipy.integrate.solve_ivp` allows uniform access to all solvers.<br>The individual solvers (``RK23``, ``RK45``, ``Radau``, ``BDF`` and ``LSODA``)<br>can also be used directly.<br><br><br>`scipy.linalg` improvements<br>----------------------------<br><br>The BLAS wrappers in `scipy.linalg.blas` have been completed. Added functions<br>are ``*gbmv``, ``*hbmv``, ``*hpmv``, ``*hpr``, ``*hpr2``, ``*spmv``, ``*spr``,<br>``*tbmv``, ``*tbsv``, ``*tpmv``, ``*tpsv``, ``*trsm``, ``*trsv``, ``*sbmv``,<br>``*spr2``,<br><br>Wrappers for the LAPACK functions ``*gels``, ``*stev``, ``*sytrd``, ``*hetrd``,<br>``*sytf2``, ``*hetrf``, ``*sytrf``, ``*sycon``, ``*hecon``, ``*gglse``,<br>``*stebz``, ``*stemr``, ``*sterf``, and ``*stein`` have been added.<br><br>The function `scipy.linalg.subspace_angles` has been added to compute the<br>subspace angles between two matrices.<br><br>The function `scipy.linalg.clarkson_woodruff_transform` has been added.<br>It finds low-rank matrix approximation via the Clarkson-Woodruff Transform.<br><br>The functions `scipy.linalg.eigh_tridiagonal` and<br>`scipy.linalg.eigvalsh_tridiagonal`, which find the eigenvalues and<br>eigenvectors of tridiagonal hermitian/symmetric matrices, were added.<br><br><br>`scipy.ndimage` improvements<br>----------------------------<br><br>Support for homogeneous coordinate transforms has been added to<br>`scipy.ndimage.affine_transform`.<br><br>The ``ndimage`` C code underwent a significant refactoring, and is now<br>a lot easier to understand and maintain.<br><br><br>`scipy.optimize` improvements<br>-----------------------------<br><br>The methods ``trust-region-exact`` and ``trust-krylov`` have been added to the<br>function `scipy.optimize.minimize`. These new trust-region methods solve the<br>subproblem with higher accuracy at the cost of more Hessian factorizations<br>(compared to dogleg) or more matrix vector products (compared to ncg) but<br>usually require less nonlinear iterations and are able to deal with indefinite<br>Hessians. They seem very competitive against the other Newton methods<br>implemented in scipy.<br><br>`scipy.optimize.linprog` gained an interior point method. Its performance is<br>superior (both in accuracy and speed) to the older simplex method.<br><br><br>`scipy.signal` improvements<br>---------------------------<br><br>An argument ``fs`` (sampling frequency) was added to the following functions:<br>``firwin``, ``firwin2``, ``firls``, and ``remez``. This makes these functions<br>consistent with many other functions in `scipy.signal` in which the sampling<br>frequency can be specified.<br><br>`scipy.signal.freqz` has been sped up significantly for FIR filters.<br><br><br>`scipy.sparse` improvements<br>---------------------------<br><br>Iterating over and slicing of CSC and CSR matrices is now faster by up to ~35%.<br><br>The ``tocsr`` method of COO matrices is now several times faster.<br><br>The ``diagonal`` method of sparse matrices now takes a parameter, indicating<br>which diagonal to return.<br><br><br>`scipy.sparse.linalg` improvements<br>----------------------------------<br><br>A new iterative solver for large-scale nonsymmetric sparse linear systems,<br>`scipy.sparse.linalg.gcrotmk`, was added. It implements ``GCROT(m,k)``, a<br>flexible variant of ``GCROT``.<br><br>`scipy.sparse.linalg.lsmr` now accepts an initial guess, yielding potentially<br>faster convergence.<br><br>SuperLU was updated to version 5.2.1.<br><br><br>`scipy.spatial` improvements<br>----------------------------<br><br>Many distance metrics in `scipy.spatial.distance` gained support for weights.<br><br>The signatures of `scipy.spatial.distance.pdist` and<br>`scipy.spatial.distance.cdist` were changed to ``*args, **kwargs`` in order to<br>support a wider range of metrics (e.g. string-based metrics that need extra<br>keywords). Also, an optional ``out`` parameter was added to ``pdist`` and<br>``cdist`` allowing the user to specify where the resulting distance matrix is<br>to be stored<br><br><br>`scipy.stats` improvements<br>--------------------------<br><br>The methods ``cdf`` and ``logcdf`` were added to<br>`scipy.stats.multivariate_normal`, providing the cumulative distribution<br>function of the multivariate normal distribution.<br><br>New statistical distance functions were added, namely<br>`scipy.stats.wasserstein_distance` for the first Wasserstein distance and<br>`scipy.stats.energy_distance` for the energy distance.<br><br><br>Deprecated features<br>===================<br><br>The following functions in `scipy.misc` are deprecated: ``bytescale``,<br>``fromimage``, ``imfilter``, ``imread``, ``imresize``, ``imrotate``,<br>``imsave``, ``imshow`` and ``toimage``. Most of those functions have unexpected<br>behavior (like rescaling and type casting image data without the user asking<br>for that). Other functions simply have better alternatives.<br><br>``scipy.interpolate.interpolate_wrapper`` and all functions in that submodule<br>are deprecated. This was a never finished set of wrapper functions which is<br>not relevant anymore.<br><br>The ``fillvalue`` of `scipy.signal.convolve2d` will be cast directly to the<br>dtypes of the input arrays in the future and checked that it is a scalar or<br>an array with a single element.<br><br>``scipy.spatial.distance.matching`` is deprecated. It is an alias of<br>`scipy.spatial.distance.hamming`, which should be used instead.<br><br>Implementation of `scipy.spatial.distance.wminkowski` was based on a wrong<br>interpretation of the metric definition. In scipy 1.0 it has been just<br>deprecated in the documentation to keep retro-compatibility but is recommended<br>to use the new version of `scipy.spatial.distance.minkowski` that implements<br>the correct behaviour.<br><br>Positional arguments of `scipy.spatial.distance.pdist` and<br>`scipy.spatial.distance.cdist` should be replaced with their keyword version.<br><br><br>Backwards incompatible changes<br>==============================<br><br>The following deprecated functions have been removed from `scipy.stats`:<br>``betai``, ``chisqprob``, ``f_value``, ``histogram``, ``histogram2``,<br>``pdf_fromgamma``, ``signaltonoise``, ``square_of_sums``, ``ss`` and<br>``threshold``.<br><br>The following deprecated functions have been removed from `scipy.stats.mstats`:<br>``betai``, ``f_value_wilks_lambda``, ``signaltonoise`` and ``threshold``.<br><br>The deprecated ``a`` and ``reta`` keywords have been removed from<br>`scipy.stats.shapiro`.<br><br>The deprecated functions ``sparse.csgraph.cs_graph_components`` and<br>``sparse.linalg.symeig`` have been removed from `scipy.sparse`.<br><br>The following deprecated keywords have been removed in `scipy.sparse.linalg`:<br>``drop_tol`` from ``splu``, and ``xtype`` from ``bicg``, ``bicgstab``, ``cg``,<br>``cgs``, ``gmres``, ``qmr`` and ``minres``.<br><br>The deprecated functions ``expm2`` and ``expm3`` have been removed from<br>`scipy.linalg`. The deprecated keyword ``q`` was removed from<br>`scipy.linalg.expm`. And the deprecated submodule ``linalg.calc_lwork`` was<br>removed.<br><br>The deprecated functions ``C2K``, ``K2C``, ``F2C``, ``C2F``, ``F2K`` and<br>``K2F`` have been removed from `scipy.constants`.<br><br>The deprecated ``ppform`` class was removed from `scipy.interpolate`.<br><br>The deprecated keyword ``iprint`` was removed from `scipy.optimize.fmin_cobyla`.<br><br>The default value for the ``zero_phase`` keyword of `scipy.signal.decimate`<br>has been changed to True.<br><br>The ``kmeans`` and ``kmeans2`` functions in `scipy.cluster.vq` changed the<br>method used for random initialization, so using a fixed random seed will<br>not necessarily produce the same results as in previous versions.<br><br>`scipy.special.gammaln` does not accept complex arguments anymore.<br><br>The deprecated functions ``sph_jn``, ``sph_yn``, ``sph_jnyn``, ``sph_in``,<br>``sph_kn``, and ``sph_inkn`` have been removed. Users should instead use<br>the functions ``spherical_jn``, ``spherical_yn``, ``spherical_in``, and<br>``spherical_kn``. Be aware that the new functions have different<br>signatures.<br><br>The cross-class properties of `scipy.signal.lti` systems have been removed.<br>The following properties/setters have been removed:<br><br>Name - (accessing/setting has been removed) - (setting has been removed)<br><br>* StateSpace - (``num``, ``den``, ``gain``) - (``zeros``, ``poles``)<br>* TransferFunction (``A``, ``B``, ``C``, ``D``, ``gain``) - (``zeros``, ``poles``)<br>* ZerosPolesGain (``A``, ``B``, ``C``, ``D``, ``num``, ``den``) - ()<br><br>``signal.freqz(b, a)`` with ``b`` or ``a`` >1-D raises a ``ValueError``. This<br>was a corner case for which it was unclear that the behavior was well-defined.<br><br>The method ``var`` of `scipy.stats.dirichlet` now returns a scalar rather than<br>an ndarray when the length of alpha is 1.<br><br><br>Other changes<br>=============<br><br>SciPy now has a formal governance structure. It consists of a BDFL (Pauli<br>Virtanen) and a Steering Committee. See `the governance document<br><<a href="https://github.com/scipy/scipy/blob/master/doc/source/dev/governance/governance.rst">https://github.com/scipy/scipy/blob/master/doc/source/dev/governance/governance.rst</a>>`_<br>for details.<br><br>It is now possible to build SciPy on Windows with MSVC + gfortran! Continuous<br>integration has been set up for this build configuration on Appveyor, building<br>against OpenBLAS.<br><br>Continuous integration for OS X has been set up on TravisCI.<br><br>The SciPy test suite has been migrated from ``nose`` to ``pytest``.<br><br>``scipy/_distributor_init.py`` was added to allow redistributors of SciPy to<br>add custom code that needs to run when importing SciPy (e.g. checks for<br>hardware, DLL search paths, etc.).<br><br>Support for PEP 518 (specifying build system requirements) was added - see<br>``pyproject.toml`` in the root of the SciPy repository.<br><br>In order to have consistent function names, the function<br>``scipy.linalg.solve_lyapunov`` is renamed to<br>`scipy.linalg.solve_continuous_lyapunov`. The old name is kept for<br>backwards-compatibility.<br><br><br><br><br></div>