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

Thouis (Ray) Jones thouis@broad.mit....
Tue Dec 9 14:52:00 CST 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: 582 bytes
Desc: not available
Url : http://projects.scipy.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: 912 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20081209/8482bc44/attachment.obj 


More information about the Scipy-dev mailing list