Re: [Numpy-discussion] ticket 2228: Scientific package seeing ABI change in 1.6.x

2012-10-30 Thread Travis Oliphant
The NPY_CHAR is not a "real type". There are no type-coercion functions attached to it nor ufuncs nor a full dtype object. However, it is used to mimic old Numeric character arrays (especially for copying a string). It should have been deprecated before changing the ABI. I don't think

Re: [Numpy-discussion] ticket 2228: Scientific package seeing ABI change in 1.6.x

2012-10-30 Thread Charles R Harris
On Tue, Oct 30, 2012 at 4:08 PM, Ralf Gommers wrote: > Hi, > > Ticket 2228 says ABI was broken in 1.6.x. Specifically, NPY_CHAR in the > NPY_TYPES enum seems to be have been moved. Can anyone comment on why the 3 > datetime related values were inserted instead of appended? > I don't know, althoug

[Numpy-discussion] ticket 2228: Scientific package seeing ABI change in 1.6.x

2012-10-30 Thread Ralf Gommers
Hi, Ticket 2228 says ABI was broken in 1.6.x. Specifically, NPY_CHAR in the NPY_TYPES enum seems to be have been moved. Can anyone comment on why the 3 datetime related values were inserted instead of appended? Ralf P.S. that ticket has escaped the Github move. __

Re: [Numpy-discussion] numpy.savez(_compressed) in loop

2012-10-30 Thread Paul Anton Letnes
On 29. okt. 2012, at 11:29, Radek Machulka wrote: > Hi, > > is there a way how to save more arrays into single npy (npz if possible) file > in loop? Something like: > > fw = open('foo.bar', 'wb') > while foo: > arr = np.array(bar) > np.savez_compressed(fw, arr) > fw.close() > > O