[SciPy-user] weave and large arrays

Ryan Krauss ryanfedora at comcast.net
Wed May 11 14:02:26 EDT 2005


Either reading in the ascii data or using io.loadmat without using weave 
runs for over 15 minutes (I have shut the process down each time and 
don't know how long it takes to complete).  The *.mat file contains 11 
column vectors that are 25000 elements long. 

Stephen Walton wrote:

> Ryan Krauss wrote:
>
>> Does anyone have an example of using weave to read in large ASCII 
>> arrays?
>
>
> Is the load command too slow?  (A bit confusingly, there appear to be 
> at least two "load" commands;  one in numarray and Numeric which reads 
> ASCII data, and one in the top level of scipy which reads pickled data.)
>
>> Is it possible to use weave to read large *.mat Matlab binary files?
>
>
> Does scipy.io.loadmat do what you need?
>
> x=scipy.io.loadmat('file.mat')
>
> will create a dictionary with entries for each variable in the MAT file.
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>




More information about the SciPy-User mailing list