[Numpy-discussion] distutils and Framework

2010-06-17 Thread Charles سمير Doutriaux
Hi, I noticed that when using a Framework based python under Mac. numpy nicely gets installed into the Python.Framework directory by default. But then if I use: from numpy.distutils.core import setup, Extension It installed under the regular: ${prefix}/lib/python-2.6/site-packages which

[Numpy-discussion] f2py with 4.1 under snow leopard

2010-06-16 Thread Charles سمير Doutriaux
Hi, I cannot build any f2py extension under nupmy 4.1 on Mac snow leopard. Everything (python/numpy) has been built 64bit. I'm attaching the log of a VERY simple piece of code, that always worked fine before. Any idea on why it's not finding the basic python things (Py_BuildValue for

Re: [Numpy-discussion] f2py with 4.1 under snow leopard

2010-06-16 Thread Charles سمير Doutriaux
? Or is there a way to obtain this by setting something else (EXTRA_LDFLAGS) or something like that? Thanks, C. On Jun 16, 2010, at 10:01 AM, Robert Kern wrote: 2010/6/16 Charles سمير Doutriaux doutria...@llnl.gov: Hi, I cannot build any f2py extension under nupmy 4.1 on Mac snow leopard

[Numpy-discussion] Fwd: [SciPy-Dev] numpy 1.4.1 f2py on Snow Leopard.

2010-05-05 Thread Charles سمير Doutriaux
I'm forwarding this to the numpy list as well since it seems to be f2py related therefore belonging here really.C.Begin forwarded message:From: Charles سمير Doutriaux doutria...@llnl.govDate: April 30, 2010 9:10:08 AM PDTTo: SciPy Developers List scipy-...@scipy.orgSubject: Re: [SciPy-Dev] numpy

Re: [Numpy-discussion] rc2 for NumPy 1.4.1 and Scipy 0.7.2

2010-04-16 Thread Charles سمير Doutriaux
Unfortunately it's not possible... We need to redistribute... And on many Oses... C. On Apr 15, 2010, at 6:54 PM, Ralf Gommers wrote: 2010/4/16 Charles سمير Doutriaux doutria...@llnl.gov Thx Ralf, I was able to get the 64bit version going. But as I mentioned earlier this doesn't

Re: [Numpy-discussion] rc2 for NumPy 1.4.1 and Scipy 0.7.2

2010-04-15 Thread Charles سمير Doutriaux
Hi There, 1.4.1rc2 gcc 4.2.1 And yes I'm trying to build a 32bit python because a lot of externals seem to be breaking with the 64bit stuff... But I'm giving it another shot building 64bit C. On Apr 14, 2010, at 5:48 PM, Ralf Gommers wrote: 2010/4/15 Charles سمير Doutriaux doutria

Re: [Numpy-discussion] rc2 for NumPy 1.4.1 and Scipy 0.7.2

2010-04-15 Thread Charles سمير Doutriaux
Thx Ralf, I was able to get the 64bit version going. But as I mentioned earlier this doesn't help me since I have other externals dying... I'll try the 32bit one again with these hints. Thanks again, C. On Apr 15, 2010, at 4:53 PM, Ralf Gommers wrote: 2010/4/16 Charles سمير Doutriaux

Re: [Numpy-discussion] rc2 for NumPy 1.4.1 and Scipy 0.7.2

2010-04-14 Thread Charles سمير Doutriaux
Just downloaded this. On my mac 10.6, using python 2.6.5 i get: Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)]

Re: [Numpy-discussion] Snow Leopard

2010-03-01 Thread Charles سمير Doutriaux
Thx David, Maybe i will have to try that as a temporary fix. But in the long run i do want to build my own Python. C. On Feb 26, 2010, at 4:59 PM, David Warde-Farley wrote: On 26-Feb-10, at 7:43 PM, Charles سمير Doutriaux wrote: Any idea on how to build a pure 32bit numpy on snow leopard

[Numpy-discussion] Snow Leopard

2010-02-26 Thread Charles سمير Doutriaux
Hi there, I'm having a lot of trouble on Snow Leopard. I'm trying to build a 32bit only version of our system Turns out I had to use python 2.7a3 in order to get Python --universalsdk to work But now numpy fails to build as well... First because of the: _old_init_posix =

Re: [Numpy-discussion] Numpy 1.4 MaskedArray bug?

2010-01-19 Thread Charles سمير Doutriaux
Hi Pierre, We didn't move to 1.4 yet. Should we wait for 1.4.1? It seems there's some issues with numpy.ma in 1.4 and we rely heavily on it. C. On Jan 12, 2010, at 11:50 AM, Pierre GM wrote: On Jan 12, 2010, at 1:52 PM, Charles R Harris wrote: On Tue, Jan 12, 2010 at 11:32 AM, Pauli

[Numpy-discussion] numpy 1.3.0 and g95 on Mac Os X

2009-09-15 Thread Charles سمير Doutriaux
Hi there, I have a user that failed to install numpy 1.3.0 on her Mac 10.5.8. Turns out she is not using gfortran but g95. Is it a known feature? Is g95 not supposed to work with numpy? She did set FC to g95 before, Here's the log. Thanks, C. numpy.LOG Description: Binary data

Re: [Numpy-discussion] numpy 1.3.0 and g95 on Mac Os X

2009-09-15 Thread Charles سمير Doutriaux
Thanks Robert, That's exactly what I recommended her. Except I usually get gfortran from http://hpc.sourceforge.net C. On Sep 15, 2009, at 12:24 PM, Robert Kern wrote: 2009/9/15 Charles سمير Doutriaux doutria...@llnl.gov: Hi there, I have a user that failed to install numpy 1.3.0 on her

Re: [Numpy-discussion] dtype and dtype.char

2009-09-08 Thread Charles سمير Doutriaux
NPY_UINT64LTR does not seem to exist What do you recommend? C. On Sep 8, 2009, at 1:02 PM, Robert Kern wrote: 2009/9/8 Charles سمير Doutriaux doutria...@llnl.gov: Hi, I'm testing our code on 64bit vs 32bit I just realized that the dtype.car is platform dependent. I guess it's normal her

[Numpy-discussion] dtype and dtype.char

2009-09-08 Thread Charles سمير Doutriaux
Hi, I'm testing our code on 64bit vs 32bit I just realized that the dtype.car is platform dependent. I guess it's normal her emy little test: for t in [numpy .byte ,numpy .short ,numpy .int ,numpy .int32 ,numpy .float ,numpy .float32 ,numpy

Re: [Numpy-discussion] dtype and dtype.char

2009-09-08 Thread Charles سمير Doutriaux
letter. Not their aliases since these can be different... It works now. C. On Sep 8, 2009, at 1:13 PM, Charles سمير Doutriaux wrote: Hi Robert, Ok we have a section of code that used to be like that: char t; switch(type) { case NPY_CHAR: t = 'c'; break; etc... I now

[Numpy-discussion] quick C api array creation question

2009-07-15 Thread Charles سمير Doutriaux
Hi, I'm using a C api to create numpy array I create them in my C as follow: np_ow = (PyArrayObject *)PyArray_SimpleNew(4, dims, NPY_DOUBLE); np_osfc = (PyArrayObject *)PyArray_SimpleNew(3, dims, NPY_DOUBLE); np_ospc = (PyArrayObject *)PyArray_SimpleNew(3, dims, NPY_DOUBLE);

Re: [Numpy-discussion] quick C api array creation question

2009-07-15 Thread Charles سمير Doutriaux
I think i can answer my own question I need to return Py_BuildValue((NNN)) C. On Jul 15, 2009, at 4:27 PM, Charles سمير Doutriaux wrote: Hi, I'm using a C api to create numpy array I create them in my C as follow: np_ow = (PyArrayObject *)PyArray_SimpleNew(4, dims, NPY_DOUBLE

Re: [Numpy-discussion] casting bug

2009-05-27 Thread Charles سمير Doutriaux
Thanks Robert, I thought it was something like that but couldn't figure it out. C. On May 26, 2009, at 4:50 PM, Robert Kern wrote: 2009/5/26 Charles سمير Doutriaux doutria...@llnl.gov: Hi there, One of our users just found a bug in numpy that has to do with casting. Consider

[Numpy-discussion] casting bug

2009-05-26 Thread Charles سمير Doutriaux
Hi there, One of our users just found a bug in numpy that has to do with casting. Consider the attached example. The difference at the end should be 0 (zero) everywhere. But it's not by default. Casting the data to 'float64' at reading and assiging to the arrays works Defining the arrays

Re: [Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-25 Thread Charles سمير Doutriaux
won;t have a lot of time to spend on that in the next few days. In any case, of course, I'll keep you posted. Thx for reporting! On Nov 24, 2008, at 12:03 PM, Charles سمير Doutriaux wrote: i mistyped the second line of the sample failing script it should obviously read: a=numpy.ma.ones

[Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-24 Thread Charles سمير Doutriaux
Hello, Using numpy 1.2.1 on a mac os 10.5 I admit the user was sort of stretching the limits but (on his machine) import numpy a=numpy.ones((16800,60,96),'f') numpy.sort(a,axis=0) works import numpy.ma a=numpy.ma.sort((16800,60,96),'f') numpy.ma.sort(a,axis=0) failed with some malloc

Re: [Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-24 Thread Charles سمير Doutriaux
i mistyped the second line of the sample failing script it should obviously read: a=numpy.ma.ones((16800,60,96),'f') not numpy.ma.sort((16800,60,96),'f') C. On Nov 24, 2008, at 8:40 AM, Charles سمير Doutriaux wrote: Hello, Using numpy 1.2.1 on a mac os 10.5 I admit the user was sort

[Numpy-discussion] numpy.ma.allclose bug

2008-11-20 Thread Charles سمير Doutriaux
The following shows a bug in numpy.ma.allclose: import numpy import numpy.ma a = numpy.arange(100) b=numpy.reshape(a,(10,10)) print b c=numpy.ma.masked_greater(b,98) print c.count() numpy.ma.allclose(b,1) numpy.ma.allclose(c,1) Since c is masked it fails I think it should pass returning

[Numpy-discussion] numpy.ma.mod missing

2008-11-19 Thread Charles سمير Doutriaux
Hello, Can I request that mod be added to numpy.ma ? Thx, C ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] setting element

2008-11-12 Thread Charles سمير Doutriaux
Hello, I'm wondering if there's aquick way to do the following: s[:,5]=value in a general function def setval(array,index,value,axis=0): ## code here The issue is to put enough : before the index value inside the square bracket of the assignement. Thanks, C.

Re: [Numpy-discussion] setting element

2008-11-12 Thread Charles سمير Doutriaux
, Ryan May wrote: Charles سمير Doutriaux wrote: Hello, I'm wondering if there's aquick way to do the following: s[:,5]=value in a general function def setval(array,index,value,axis=0): ## code here Assuming that axis specifies where the index goes, that would be: def

Re: [Numpy-discussion] setting element

2008-11-12 Thread Charles سمير Doutriaux
Thx! On Nov 12, 2008, at 10:36 AM, Gabriel Gellner wrote: On Wed, Nov 12, 2008 at 12:34:51PM -0600, Ryan May wrote: Charles سمير Doutriaux wrote: Hello, I'm wondering if there's aquick way to do the following: s[:,5]=value in a general function def setval(array,index,value,axis=0