Re: [Numpy-discussion] searchsorted bug

2008-02-01 Thread James Philbin
Try out latest SVN. It should have this problem fixed. Thanks for this. I've realized that for my case, using object arrays is probably best. I still think that long term it would be good to allow comparison functions to take different types, so that one could compare say integer arrays with

[Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Andrea Gavana
Hi All, I sent a couple of messages to f2py mailing list, but it seems like my problem has no simple solution so I thought to ask for some suggestions here. Basically, I read some huge unformatted binary files which contain time-step data from a reservoir simulation. I don't know the

Re: [Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Pearu Peterson
On Fri, February 1, 2008 4:18 pm, Andrea Gavana wrote: Hi Lisandro, On Feb 1, 2008 1:59 PM, Lisandro Dalcin wrote: Sorry if I'm making noise, my knowledge of fortran is really little, but in your routine AllocateDummy your are fist allocating and next deallocating the arrays. Are you sure

Re: [Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Lisandro Dalcin
Sorry if I'm making noise, my knowledge of fortran is really little, but in your routine AllocateDummy your are fist allocating and next deallocating the arrays. Are you sure you can then access the contents of your arrays after deallocating them? How much complicated is your binary format? For

Re: [Numpy-discussion] histogramdd memory needs

2008-02-01 Thread David Huard
Hi Lars, [...] 2008/2/1, Lars Friedrich [EMAIL PROTECTED]: 1) How can I tell histogramdd to use another dtype than float64? My bins will be very little populated so an int16 should be sufficient. Without normalization, a Integer dtype makes more sense to me. There is no way you'll be able

Re: [Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Andrea Gavana
Hi Lisandro, On Feb 1, 2008 1:59 PM, Lisandro Dalcin wrote: Sorry if I'm making noise, my knowledge of fortran is really little, but in your routine AllocateDummy your are fist allocating and next deallocating the arrays. Are you sure you can then access the contents of your arrays after

Re: [Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Robert Kern
Pearu Peterson wrote: On Fri, February 1, 2008 1:28 pm, Andrea Gavana wrote: Hi All, I sent a couple of messages to f2py mailing list, but it seems like my problem has no simple solution so I thought to ask for some suggestions here. Sorry, I haven't been around there long time. Are

Re: [Numpy-discussion] [F2PY]: Allocatable Arrays

2008-02-01 Thread Pearu Peterson
On Fri, February 1, 2008 8:39 pm, Robert Kern wrote: Pearu Peterson wrote: On Fri, February 1, 2008 1:28 pm, Andrea Gavana wrote: Hi All, I sent a couple of messages to f2py mailing list, but it seems like my problem has no simple solution so I thought to ask for some suggestions here.

[Numpy-discussion] Call to mrecords users

2008-02-01 Thread Pierre GM
All, I just commited some updates on mrecords (numpy.maskedarray branch). Overall, it's a reorganization/simplification of the code. Regular masked arrays can already recognize named fields, but the mask works only at the record level (ie, all the fields of one record are masked). In