[Numpy-discussion] converting from scipy.io.fread

2009-04-12 Thread Christoph T. Weidemann
I noticed that scipy.io.fread is deprecated and wanted to change some code I got from somebody else accordingly. This code contains statements like: fread(fid, 1, 'h') fread(fid, 1, 'l') fread(fid, 1, 'd') fread(fid, 6, 'B') and variations of those with different number and letters. The docstring

[Numpy-discussion] ravel() in ma/core.py

2008-08-12 Thread Christoph T. Weidemann
Hi! I'm working with a subclass of ndarray and ran into an issue that seems to be caused by a line in numpy/ma/core.py The offending line is no. 1837 in version 1.1.0 or 2053 in the latest SVN version (revision 5635): r = ndarray.ravel(self._data).view(type(self)) The problem is that my subclass

Re: [Numpy-discussion] labeled array

2008-05-06 Thread Christoph T. Weidemann
On Tue, May 6, 2008 at 1:00 PM, Keith Goodman [EMAIL PROTECTED] wrote: I'm trying to design a labeled array class. A labeled array contains a 2d array and two lists. One list labels the rows of the array (e.g. variable names) and another list labels the columns of the array (e.g. dates).