Re: [Numpy-discussion] Combinations of objects (?)

2008-10-20 Thread T J
On Mon, Oct 20, 2008 at 2:20 AM, A. G. wrote: one well attached to 2 or more units). Is there any simple way in numpy (scipy?) in which I can get the number of possible combinations of wells attached to the different 3 units, without repetitions? For example, I could have all 60 wells attached

Re: [Numpy-discussion] Combinations of objects (?)

2008-10-20 Thread Alan G Isaac
On 10/20/2008 5:20 AM Andrea Gavana apparently wrote: this is probably a very silly question, but combinatorial math is not exactly my strength and I am not even sure on how to formulate the question. I apologize if it is a very elementary problem. Let's suppose that I have 60 oil wells

[Numpy-discussion] Combinations of objects (?)

2008-10-20 Thread Andrea Gavana
Hi All, this is probably a very silly question, but combinatorial math is not exactly my strength and I am not even sure on how to formulate the question. I apologize if it is a very elementary problem. Let's suppose that I have 60 oil wells and 3 surface facilities. Every well must be

Re: [Numpy-discussion] Combinations of objects (?)

2008-10-20 Thread Andrea Gavana
Hi All, On Mon, Oct 20, 2008 at 12:48 PM, Alan G Isaac wrote: On 10/20/2008 5:20 AM Andrea Gavana apparently wrote: this is probably a very silly question, but combinatorial math is not exactly my strength and I am not even sure on how to formulate the question. I apologize if it is a

[Numpy-discussion] Octave-numpy bridge?

2008-10-20 Thread Ravi
Hi all, Is anyone aware of a bridge between octave numpy? As I port stuff from Matlab to numpy, I noticed that most of my Matlab code has workarounds that allow the code to be used from octave. My current methodology for porting is to use octave to generate inputs/outputs for a function,

Re: [Numpy-discussion] Combinations of objects (?)

2008-10-20 Thread joep
On Oct 20, 11:02 am, Andrea Gavana [EMAIL PROTECTED] wrote: Hi All, On Mon, Oct 20, 2008 at 12:48 PM, Alan G Isaac wrote: On 10/20/2008 5:20 AM Andrea Gavana apparently wrote:     this is probably a very silly question, but combinatorial math is not exactly my strength and I am not

Re: [Numpy-discussion] numpy CAPI questions

2008-10-20 Thread Travis E. Oliphant
Lane Brooks wrote: I am using the numpy CAPI to write an extension module that returns a numpy Array from an imaging data source. I collect the image into a buffer that I allocate. I then create numpy Array using the PyArray_New(..) function and pass it the buffer. I then set the

[Numpy-discussion] windows install problem for 1.2

2008-10-20 Thread Ryan Krauss
I need to upgrade my Python installation. I just uninstalled everything, deleted C:\Python25, installed Python 2.5.2 from the msi, and am now trying to install numpy 1.2 from numpy-1.2.0-win32-superpack-python2.5.exe. It flashes something up for a second and then goes away giving me no

[Numpy-discussion] Memmapping .npy

2008-10-20 Thread Gael Varoquaux
Currently memmapping a .npy file is not implemented. Is there a reason than lack of time for this? Are there any major difficulties? Cheers, Gaël ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] Memmapping .npy

2008-10-20 Thread Robert Kern
On Mon, Oct 20, 2008 at 14:25, Gael Varoquaux [EMAIL PROTECTED] wrote: On Mon, Oct 20, 2008 at 09:20:56PM +0200, Gael Varoquaux wrote: Currently memmapping a .npy file is not implemented. Is there a reason than lack of time for this? Are there any major difficulties? Actually, let me rephrase

Re: [Numpy-discussion] Memmapping .npy

2008-10-20 Thread Gael Varoquaux
On Mon, Oct 20, 2008 at 02:27:54PM -0500, Robert Kern wrote: If yes why isn't it exposed in numpy.load? If not, the questions above apply. I have no idea. I didn't write that code. Robert, you know these things way better than me, so please pardon my stupid question: Would it be

Re: [Numpy-discussion] Memmapping .npy

2008-10-20 Thread Robert Kern
On Mon, Oct 20, 2008 at 14:30, Gael Varoquaux [EMAIL PROTECTED] wrote: On Mon, Oct 20, 2008 at 02:27:54PM -0500, Robert Kern wrote: If yes why isn't it exposed in numpy.load? If not, the questions above apply. I have no idea. I didn't write that code. Robert, you know these things way

Re: [Numpy-discussion] numpy CAPI questions

2008-10-20 Thread Lane Brooks
Travis E. Oliphant wrote: Lane Brooks wrote: I am using the numpy CAPI to write an extension module that returns a numpy Array from an imaging data source. I collect the image into a buffer that I allocate. I then create numpy Array using the PyArray_New(..) function and pass it the

Re: [Numpy-discussion] numpy CAPI questions

2008-10-20 Thread Robert Kern
On Mon, Oct 20, 2008 at 16:13, Lane Brooks [EMAIL PROTECTED] wrote: Thanks for all this valuable feedback. I read your blog post and like the idea but not the overhead. I guess my initial approach of doing a memory handoff to the numpy Array was a bit naive. It seems to be working, but I

[Numpy-discussion] statistical model fitting comparison

2008-10-20 Thread Joris De Ridder
Hi, I'm interested in developing some general-use Python/Numpy code for linear model fitting and comparison. The fitting is easy enough with Numpy, but the automated comparison of the submodels to identify which model describes best the data, requires some work. Before I embark on this, I

Re: [Numpy-discussion] Octave-numpy bridge?

2008-10-20 Thread David Cournapeau
Ravi wrote: Hi all, Is anyone aware of a bridge between octave numpy? As I port stuff from Matlab to numpy, I noticed that most of my Matlab code has workarounds that allow the code to be used from octave. My current methodology for porting is to use octave to generate inputs/outputs

Re: [Numpy-discussion] windows install problem for 1.2

2008-10-20 Thread David Cournapeau
Ryan Krauss wrote: I need to upgrade my Python installation. I just uninstalled everything, deleted C:\Python25, installed Python 2.5.2 from the msi, and am now trying to install numpy 1.2 from numpy-1.2.0-win32-superpack-python2.5.exe. It flashes something up for a second and then goes