Public bug reported:

Binary package hint: python-scipy

Recent ubuntus (at least from 9.04 till lucid) provide scipy v0.7.0
(python-scipy) which has an important regression problem for the
function scipy.io.loadmat(). The loadmat() imports data from Matlab
format (".mat") files into NumPy arrays, a task which is very popular
among scipy users. Note that there is no alternative to using this
function if you need to work with Matlab files.

Scipy v0.7.0 introduced a severe regression problem in that function
which became excessively slow, like requiring tens of minutes instead of
ten seconds to load files. The result is that the loadmat() function is
unusable in SciPy v0.7.0.

This bug has been tracked and solved by SciPy developers nearly one year ago 
with very simple patch. Details here, with a test case and thorough discussion:
http://thread.gmane.org/gmane.comp.python.scientific.devel/9934/focus=9974

The very simple patch is here:
http://article.gmane.org/gmane.comp.python.scientific.devel/9944
it modifies few lines of gzipstreams.py which lies here:
/usr/share/pyshared/scipy/io/matlab/gzipstreams.py
Note that within the discussion's thread there more than one patch was 
proposed, but the only correct one is the last proposed, which the above link 
refers to.

I am attaching the same patch here for your convenience.

Please apply it or upgrade python-scipy package to a more recent SciPy
version.

Thanks.

** Affects: python-scipy (Ubuntu)
     Importance: Undecided
         Status: New

-- 
scipy.io.loadmat() excessively slow (regression)
https://bugs.launchpad.net/bugs/538774
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to