Pauli Virtanen | 15 Dec 20:47 2014

ANN: Scipy 0.15.0 release candidate 1

Dear all,

Scipy 0.15.0 release candidate 1 is now available. If no surprises
turn up, the final release is planned within two weeks.

Source tarballs, full release notes etc. are available at

Best regards,
Pauli Virtanen
Pauli Virtanen | 14 Dec 23:29 2014

ANN: Scipy 0.14.1 release candidate 1

Dear all,

We have finished preparing the Scipy 0.14.1 release candidate 1.
If no regressions turn up, the final release is planned within the
following weeks.

The 0.14.1 release will be a bugfix-only release, addressing the
following issues:

gh-3630 NetCDF reading results in a segfault
gh-3631 SuperLU object not working as expected for complex matrices
gh-3733 Segfault from map_coordinates
gh-3780 Segfault when using CSR/CSC matrix and uint32/uint64
gh-3781 Fix omitted types in sparsetools typemaps
gh-3802 0.14.0 API breakage: _gen generators are missing from
scipy.stats.distributions API
gh-3805 ndimge test failures with numpy 1.10
gh-3812 == sometimes wrong on csr_matrix
gh-3853 Many scipy.sparse test errors/failures with numpy 1.9.0b2
gh-4084 Fix exception declarations for Cython 0.21.1 compatibility
gh-4093 Avoid a memory error in splev(x, tck, der=k)
gh-4104 Workaround SGEMV segfault in Accelerate (maintenance 0.14.x)
gh-4143 Fix ndimage functions for large data
gh-4149 Bug in expm for integer arrays
gh-4154 Ensure that the 'size' argument of PIL's 'resize' method is
a tuple
gh-4163 ZeroDivisionError in scipy.sparse.linalg.lsqr
gh-4164 Remove use of deprecated numpy API in lib/lapack/ f2py wrapper
gh-4180 pil resize support tuple fix
(Continue reading)

Ralf Gommers | 13 Dec 21:01 2014

deprecating stats.pdf_fromgamma

Hi all,

Today I ran into stats.pdf_fromgamma again. That function, which does Gram-Chandler expansion to construct a distribution from 4 moments, is completely undocumented and untested. Statsmodels seems to be a better place to put this kind of functionality in, and it already contains the closely related Edgeworth expansion. See for more details.

Therefore the proposal is to deprecate pdf_fromgamma for 0.16.0. Any objections?


SciPy-Dev mailing list
SciPy-Dev <at>
Ralf Gommers | 13 Dec 13:05 2014

when to drop numpy 1.5.x/1.6.x support?

Hi all,

During the last week there were 3 PRs that failed because they used features not available in numpy 1.5.x or 1.6.x: (copy kw to astype method) (out kw to ufuncs) (use of np.random.choice)

All those issues were/are fixable, but it looks like the balance of gain from keeping support for those numpy versions to development effort of supporting them is slowly shifting the wrong way. So questions:

1. Is anyone still relying on numpy 1.5.x or 1.6.x support for the next scipy releases?
2. Is it time to drop support for those versions, or if not then when?


SciPy-Dev mailing list
SciPy-Dev <at>
Parke Loyd | 13 Dec 02:12 2014

contribute wald-wolfowitz runs test to scipy.stats


I wrote a bit of code that computes the test statistic and p-value for the wald-wolfowitz runs test. Seems like it would fit nicely alongside the other statistical tests in the stats module (ansari, bartlett, ...). The code is currently available here -- the function named runstest. 

The code works for my purposes, but I expect there is still much to be done before it will be ready for a pull request. Per the guide on contributing to SciPy, I figured I would get the conversation started to find out whether the community thought it a worthwhile contribution before making the effort to get it ready for a PR.

SciPy-Dev mailing list
SciPy-Dev <at>
Ryan Nelson | 11 Dec 19:29 2014

Cookbook update

Hello Scipy-devs:

The link below on building a Qt app with a Matplotlib widget is very dated.

After several research/trial/error cycles, I reproduced the Qt4 plot window that you using the relevant pyplot commands. I suppose I could update the Cookbook page above, but I need editing rights. Is this still possible, or are we trying to point users to a new location?


P.S. Here's the relevant code, in case it matters.

File =
from test import Ui_MainWindow

from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import (
    FigureCanvasQTAgg as FigureCanvas,
    NavigationToolbar2QT as NavigationToolbar)

from PyQt4 import QtGui

class Main(QtGui.QMainWindow, Ui_MainWindow):
    def __init__(self, ):
        super(Main, self).__init__()


    def populatefigure(self,):
        self.fig = Figure()
        self.canvas = FigureCanvas(self.fig)

        self.mplvbox = QtGui.QVBoxLayout()

    def addtoolbar(self,):
        self.toolbar = NavigationToolbar(self.canvas, self, 

    def addtoolbar2(self,):
        self.toolbar = NavigationToolbar(self.canvas, self.MplFigure, 

    def plotdata(self,):
        self.axes = self.fig.add_subplot(111)

if __name__ == "__main__":
    Run IPython as follows:
    $ ipython --gui='qt'
    [In 1]: %run
    If running this file directly from the command line, remove the comments
    below and do the following:
    $ python

    #import sys
    #app = QtGui.QApplication([])
    main = Main()

File = (created with Designer and pyuic4)
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'test.ui'
# Created: Thu Dec 11 12:32:15 2014
#      by: PyQt4 UI code generator 4.11.3
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.MplFigure = QtGui.QWidget(self.centralwidget)
        self.gridLayout.addWidget(self.MplFigure, 0, 0, 1, 1)


    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
SciPy-Dev mailing list
SciPy-Dev <at>
Deacon Sweeney | 11 Dec 18:09 2014

Several packages failing on sparse/csgraph/


I'm having an unusual bug on a fresh installation of scipy on SUSE, with Python 2.7.8. There are several packages (stats, sparse, optimize, interpolate, etc) that all fail to import due to sparse/csgraph/ Here is the error message from sparse:

>>> import scipy.sparse
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/itmi/Python-2.7.8_a/lib/python2.7/site-packages/scipy/sparse/", line 206, in <module>
    from scipy.sparse.csgraph import _validation
  File "/itmi/Python-2.7.8_a/lib/python2.7/site-packages/scipy/sparse/csgraph/", line 122, in <module>
    from scipy.sparse.csgraph import _validation
  File "/itmi/Python-2.7.8_a/lib/python2.7/site-packages/scipy/sparse/csgraph/", line 4, in <module>
    from scipy.sparse import csr_matrix, isspmatrix, isspmatrix_csc, isspmatrix_csr
ImportError: cannot import name csr_matrix

We have a bit of an unusual installation arrangement here, where I have to use the "module load" command to switch Python versions.

I can't find anything searching around, so I figured I'd reach out to the experts here while digging in further myself. Any insights would be very appreciated!



SciPy-Dev mailing list
SciPy-Dev <at>
Eric Moore | 9 Dec 15:22 2014

Adding routines for updating QR decompositions


I've just submitted PR #4249 adding qr_update, qr_insert and qr_delete for performing rank-k updates, adding rows or columns and removing rows or colums.

Comments welcome.

SciPy-Dev mailing list
SciPy-Dev <at>
Warren Weckesser | 5 Dec 13:15 2014

Problem with scipy.integrate.nquad reported on stackoverflow

Could someone with a Windows installation of scipy 0.14.0 run the code

It works for me on Mac OS X.   In the comments to the question,
Jonathan March reported that the problem occurs with both 32 and 64
bit Windows 7.  Does the code work for anyone using Windows?  ("Work"
means the values reported for 'Intf1corr' and 'Intf2' are the same.)

Pierre Haessig | 2 Dec 12:52 2014

iirdesign fails with ftype='bessel'


The scipy.signal.iirdesign function accepts different filter types like 
'butter' or 'ellip' (cf.

However, it fails with the ftype 'bessel':
ValueError: bessel does not have order selection. Use iirfilter function.

This error is triggered at this line of code:

So in practice, the iirdesign function cannot accept the 'bessel' type. 
Shouldn't we remove it from the docstring ?
Or is this a pedagogical error, put here on purpose ?

Evgeni Burovski | 26 Nov 23:11 2014

Blomberg open source event London 29-30 Nov


In case somebody is interested and have not heard about it --- Blooomberg is organizing a two-day open source event for scientific python in London this weekend, Nov 28-29.

The event is RSVP:

Here are related annoucements/discussions in pydata and numpy lists: 
If you are not around, consider joining remotely --- I do not speak for the organizers, but we can always self-organize on github or ML.

See you on Saturday --- in person or online,

SciPy-Dev mailing list
SciPy-Dev <at>