[SciPy-dev] patch: writing 1x1 cell arrays in matlab

Thouis (Ray) Jones thouis at broad.mit.edu
Tue Dec 9 15:52:00 EST 2008


Lee Kamnetsky discovered a possible bug in mio5.py.  Diff and test
case attached.

The second test is the one that fails and is addressed by this patch,
and this is the gist of it:

    cells = np.ndarray((1,1),dtype=object)
    cells[0,0]='Hello, world'
    savemat(StringIO(), {'x': cells}, format='5')


Ray Jones
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regression_11cell.py
Type: text/x-python
Size: 583 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20081209/8482bc44/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mio5.py.diff
Type: application/octet-stream
Size: 913 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20081209/8482bc44/attachment.obj>


More information about the SciPy-Dev mailing list