[SciPy-dev] Please stress-test SVN version pf matlab reader
M Trumpis
mtrumpis at berkeley.edu
Tue Jan 12 15:30:15 EST 2010
Hi Matthew.. here's something I've been seeing which is confusing,
concerning the dtypes. I'm sorry if anyone has pointed this out before
related to record arrays. I haven't looked at it too closely myself
yet
In [13]: mri = sio.loadmat('mri.mat', struct_as_record=True)['mri']
In [14]: affine = mri[0,0]['transform']
In [15]: affine.dtype
Out[15]: dtype('float64')
In [16]: affine.dtype.isbuiltin
Out[16]: 0
In [17]: affine.dtype.str
Out[17]: '<f8'
Mike
On Tue, Jan 5, 2010 at 6:00 PM, Matthew Brett <matthew.brett at gmail.com> wrote:
> Hi,
>
> For those of you interested in the matlab reader in scipy - a bout of
> 'flu left me with only enough energy to try and work out the last
> undocumented bits of the matlab file format. I _believe_ that the
> current SVN version of the reader:
>
> import scipy.io as sio
> a = sio.loadmat('your_matfile_here.mat')
>
> should successfully read any non-HDF matlab-written matfile - and this
> is just to ask if those of you, with mat files lying around, could try
> out the latest SVN version, and let me know that I am wrong, most
> usefully with some way of me being able to reproduce the problem.
>
> I also have the hope / belief that the scipy reader should be
> performing at round about the same speed as matlab to read the same
> file - please let me know if this is way off too.
>
> Thanks a lot,
>
> Matthew
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
More information about the SciPy-Dev
mailing list