Upgrading scipy 0.15 to 0.16
Breaking0.15.1 → 0.16.1Breaking4Platform1Deprecated4New28Changed4Other2
BreakingUpgrade verdict
4 breaking changes and a platform requirement change.
In plain terms
- The old simulated annealing optimizer is gone.
- Old BLAS and LAPACK module paths, deprecated since SciPy 0.12.0, no longer exist.
- A deprecated special-functions helper is gone.
- Five deprecated statistics functions are no longer available.
Must act Top 5 of 9 that need code or config changes
What you must change
Breaking4
Removes the deprecated global optimizer scipy.optimize.anneal.
scipy.optimize.annealRemoves deprecated modules scipy.lib.blas, scipy.lib.lapack, scipy.linalg.cblas, scipy.linalg.fblas, scipy.linalg.clapack and scipy.linalg.flapack.
scipy.lib.blasscipy.lib.lapackscipy.linalg.cblasscipy.linalg.fblasscipy.linalg.clapackscipy.linalg.flapackscipy.linalg.blasscipy.linalg.lapackRemoves the deprecated function scipy.special.all_mat.
scipy.special.all_matRemoves deprecated functions fprob, ksprob, zprob, randwcdf and randwppf from scipy.stats.
scipy.stats.fprobscipy.stats.ksprobscipy.stats.zprobscipy.stats.randwcdfscipy.stats.randwppfPlatform1
Requires Python 2.6, 2.7 or 3.2-3.4 and NumPy 1.6.2 or greater.
Deprecations to plan for
Deprecated4
Deprecates scipy.stats.pdf_fromgamma; statsmodels provides equivalent functionality.
scipy.stats.pdf_fromgammastatsmodels.distributions.ExpandedNormalDeprecates scipy.stats.fastsort; numpy.argsort can be used instead.
scipy.stats.fastsortnumpy.argsortDeprecates scipy.stats.signaltonoise and scipy.stats.mstats.signaltonoise, which did not belong in scipy.stats and are rarely used.
scipy.stats.signaltonoisescipy.stats.mstats.signaltonoiseDeprecates scipy.stats.histogram2, which is unnecessary because numpy.histogram2d can be used instead.
scipy.stats.histogram2numpy.histogram2dAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function dendrogram(Z, p=…, truncate_mode=…, color_threshold=…, get_leaves=…, orientation=…, labels=…, count_sort=…, distance_sort=…, show_leaf_counts=…, no_plot=…, no_labels=…, color_list=…, leaf_font_size=…, leaf_rotation=…, leaf_label_func=…, no_leaves=…, show_contracted=…, link_color_func=…, ax=…) → function dendrogram(Z, p=…, truncate_mode=…, color_threshold=…, get_leaves=…, orientation=…, labels=…, count_sort=…, distance_sort=…, show_leaf_counts=…, no_plot=…, no_labels=…, color_list=…, leaf_font_size=…, leaf_rotation=…, leaf_label_func=…, no_leaves=…, show_contracted=…, link_color_func=…, ax=…, above_threshold_color=…)
- changed:
function kmeans(obs, k_or_guess, iter=…, thresh=…) → function kmeans(obs, k_or_guess, iter=…, thresh=…, check_finite=…) - changed:
function kmeans2(data, k, iter=…, thresh=…, minit=…, missing=…) → function kmeans2(data, k, iter=…, thresh=…, minit=…, missing=…, check_finite=…) - changed:
function vq(obs, code_book) → function vq(obs, code_book, check_finite=…) - changed:
function whiten(obs) → function whiten(obs, check_finite=…)
- changed:
constructor InterpolatedUnivariateSpline(x, y, w=…, bbox=…, k=…, ext=…) → constructor InterpolatedUnivariateSpline(x, y, w=…, bbox=…, k=…, ext=…, check_finite=…) - changed:
constructor LSQUnivariateSpline(x, y, t, w=…, bbox=…, k=…, ext=…) → constructor LSQUnivariateSpline(x, y, t, w=…, bbox=…, k=…, ext=…, check_finite=…) - changed:
constructor UnivariateSpline(x, y, w=…, bbox=…, k=…, s=…, ext=…) → constructor UnivariateSpline(x, y, w=…, bbox=…, k=…, s=…, ext=…, check_finite=…)
- added:
method BPoly.antiderivative(nu=…) - added:
method BPoly.integrate(a, b, extrapolate=…)
- added:
class EmptyStructMarker(object) - added:
method VarWriter5.write_empty_struct()
- removed:
export cblas - removed:
export fblas - removed:
function get_blas_funcs(names, arrays=…, debug=…) - removed:
variable cblas - removed:
variable fblas
- removed:
function do_generate_fake_interface(target, source, env) - removed:
function generate_interface_emitter(target, source, env)
- removed:
function configuration(parent_package=…, top_path=…) - removed:
variable tmpl_empty_cblas_pyf
- removed:
class FunctionMaker(object) - removed:
class partial(object) - removed:
constructor FunctionMaker(func=…, name=…, signature=…, defaults=…, doc=…, module=…, funcdict=…) - removed:
constructor partial(func, *args, **kw) - removed:
export partial - removed:
function decorator(caller, func=…) - removed:
method FunctionMaker.make(src_templ, evaldict=…, addsource=…, **attrs) - removed:
method FunctionMaker.update(func, **kw) - removed:
static method FunctionMaker.create(obj, body, evaldict, defaults=…, doc=…, module=…, addsource=…, **attrs)
- removed:
export calc_lwork - removed:
export clapack - removed:
export flapack - removed:
function get_lapack_funcs(names, arrays=…, debug=…, force_clapack=…) - removed:
variable clapack - removed:
variable flapack
- removed:
function do_generate_fake_interface(target, source, env) - removed:
function generate_interface_emitter(target, source, env)
- removed:
function configuration(parent_package=…, top_path=…) - removed:
variable tmpl_empty_clapack_pyf
- removed:
function configuration(parent_package=…, top_path=…)
- removed:
class Iterator(object) - removed:
class X(object) - removed:
function advance_iterator(it) - removed:
function b(s) - removed:
function callable(obj) - removed:
function exec_(code, globs=…, locs=…) - removed:
function get_unbound_function(unbound) - removed:
function int2byte(i) - removed:
function iteritems(d) - removed:
function iterkeys(d) - removed:
function itervalues(d) - removed:
function print_(*args, **kwargs) - removed:
function reraise(tp, value, tb=…) - removed:
function u(s) - removed:
function with_metaclass(meta, base=…) - removed:
method Iterator.next() - removed:
variable BytesIO - removed:
variable Iterator - removed:
variable MAXSIZE - removed:
variable PY3 - removed:
variable StringIO - removed:
variable advance_iterator - removed:
variable binary_type - removed:
variable builtins - removed:
variable callable - removed:
variable class_types - removed:
variable exec_ - removed:
variable get_function_code - removed:
variable get_function_defaults - removed:
variable get_method_function - removed:
variable get_method_self - removed:
variable int2byte - removed:
variable integer_types - removed:
variable next - removed:
variable print_ - removed:
variable reduce - removed:
variable string_types - removed:
variable text_type - removed:
variable xrange - removed:
variable zip
- added:
function solve_circulant(c, b, singular=…, tol=…, caxis=…, baxis=…, outaxis=…) - added:
function solve_toeplitz(c_or_cr, b, check_finite=…)
- removed:
variable empty_module
- removed:
variable empty_module
- removed:
function all_mat(*args) - added:
function helmert(n, full=…) - added:
function invpascal(n, kind=…, exact=…)
- added:
export LbfgsInvHessProduct
- removed:
function anneal(func, x0, args=…, schedule=…, full_output=…, T0=…, Tf=…, maxeval=…, maxaccept=…, maxiter=…, boltzmann=…, learn_rate=…, feps=…, quench=…, m=…, n=…, lower=…, upper=…, dwell=…, disp=…)
- added:
class LbfgsInvHessProduct(LinearOperator) - added:
constructor LbfgsInvHessProduct(sk, yk) - added:
method LbfgsInvHessProduct.todense()
- added:
class LineSearchWarning(RuntimeWarning)
- changed:
function show_options(solver=…, method=…) → function show_options(solver=…, method=…, disp=…)
- added:
function group_delay(system, w=…, whole=…) - added:
function sos2tf(sos) - added:
function sos2zpk(sos) - added:
function tf2sos(b, a, pairing=…) - added:
function zpk2sos(z, p, k, pairing=…)
- changed:
constructor lti(*args, **kwords) → constructor lti(*system) - added:
class StateSpace(lti) - added:
class TransferFunction(lti) - added:
class ZerosPolesGain(lti) - added:
constructor StateSpace(*system) - added:
constructor TransferFunction(*system) - added:
constructor ZerosPolesGain(*system) - added:
function place_poles(A, B, poles, method=…, rtol=…, maxiter=…) - added:
method StateSpace.to_ss() - added:
method StateSpace.to_tf(**kwargs) - added:
method StateSpace.to_zpk(**kwargs) - added:
method TransferFunction.to_ss() - added:
method TransferFunction.to_tf() - added:
method TransferFunction.to_zpk() - added:
method ZerosPolesGain.to_ss() - added:
method ZerosPolesGain.to_tf() - added:
method ZerosPolesGain.to_zpk() - added:
property StateSpace.A - added:
property StateSpace.B - added:
property StateSpace.C - added:
property StateSpace.D - added:
property TransferFunction.den - added:
property TransferFunction.num - added:
property ZerosPolesGain.gain - added:
property ZerosPolesGain.poles - added:
property ZerosPolesGain.zeros
- changed:
function filtfilt(b, a, x, axis=…, padtype=…, padlen=…) → function filtfilt(b, a, x, axis=…, padtype=…, padlen=…, method=…, irlen=…) - added:
function sosfilt(sos, x, axis=…, zi=…) - added:
function sosfilt_zi(sos)
- added:
function coherence(x, y, fs=…, window=…, nperseg=…, noverlap=…, nfft=…, detrend=…, axis=…) - added:
function csd(x, y, fs=…, window=…, nperseg=…, noverlap=…, nfft=…, detrend=…, return_onesided=…, scaling=…, axis=…) - added:
function spectrogram(x, fs=…, window=…, nperseg=…, noverlap=…, nfft=…, detrend=…, return_onesided=…, scaling=…, axis=…)
- added:
function exponential(M, center=…, tau=…, sym=…) - added:
function tukey(M, alpha=…, sym=…)
- added:
method spmatrix.power(n, dtype=…)
- added:
function random(m, n, density=…, format=…, dtype=…, random_state=…, data_rvs=…)
- added:
method dia_matrix.transpose()
- removed:
method dok_matrix.toarray(order=…, out=…)
- added:
variable bench
- changed:
constructor LinearOperator(shape, matvec, rmatvec=…, matmat=…, dtype=…) → constructor LinearOperator(dtype, shape) - changed:
method LinearOperator.dot(other) → method LinearOperator.dot(x) - added:
field LinearOperator.H - added:
field LinearOperator.T - added:
method LinearOperator.adjoint() - added:
method LinearOperator.rmatvec(x) - added:
method LinearOperator.transpose()
- removed:
export inv
- added:
export procrustes
- removed:
function randwcdf(cdf, mean=…, args=…, size=…) - removed:
function randwppf(ppf, args=…, size=…)
- removed:
variable fprob - removed:
variable ksprob - removed:
variable zprob - added:
function ttest_ind_from_stats(mean1, std1, nobs1, mean2, std2, nobs2, equal_var=…)
- changed:
function von_mises_cdf_normalapprox(k, x, C1) → function von_mises_cdf_normalapprox(k, x)