Re: [Numpy-discussion] numpy.distutils

2010-10-11 Thread Charles Doutriaux
your project. We ended up reverting this, and the changes will be done in Distutils2. see: http://BLOCKEDbugs.python.org/issue8688 for the details. > On 10/7/10 9:39 PM, David Cournapeau wrote: > On Fri, Oct 8, 2010 at 7:40 AM, Charles Doutriaux wrote: > >> Did anybody else n

[Numpy-discussion] numpy.distutils

2010-10-07 Thread Charles Doutriaux
Hi, I'm not sure if this is a numpy.distutils or a regular distutils issue so please excuse me if it doesn't belong here. I 'm using numpy 1.4.1 and I have a C extension (using numpy arrays) that I built with numpy. When I'm debugging I frequently have to rebuild. It use to rebuild only the C

[Numpy-discussion] Fwd: distutils

2010-09-09 Thread Charles Doutriaux
Original Message Subject:[Numpy-discussion] distutils Date: Tue, 7 Sep 2010 12:12:58 -0700 From: Charles Doutriaux Reply-To: Discussion of Numerical Python To: Discussion of Numerical Python Hi, I'm using distutils to build extensions written

[Numpy-discussion] distutils

2010-09-07 Thread Charles Doutriaux
Hi, I'm using distutils to build extensions written in C. I noticed that lately (it seems to be python 2.7 related) whenever I touch 1 C file, ALL the C files are rebuilt. Since I have a lot of C code, it takes a lot of time for nothing. Any idea why this is happening? Do I need to set somethi

Re: [Numpy-discussion] 1.2.0rc2 tagged! --PLEASE TEST--

2008-09-16 Thread Charles Doutriaux
Thanks Jarrod it's coming back now. I thought they had updated the system... but no luck... Ok that's the issue i'm using: gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8) Thanks again, C. Jarrod Millman wrote: > Which version of gcc are you using? Do I remember correctly that you > had the same fa

Re: [Numpy-discussion] 1.2.0rc2 tagged! --PLEASE TEST--

2008-09-16 Thread Charles Doutriaux
thunder0 ~/svn >more /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 5) I guess it's kind of old... And unfortunately, the lab won't let us add this machine to anything C. Charles R Harris wrote: > > > On Tue, Sep 16, 2008 at 10:16 AM, Charle

Re: [Numpy-discussion] 1.2.0rc2 tagged! --PLEASE TEST--

2008-09-16 Thread Charles Doutriaux
On this system, both 1.2rc1 and rc2 hang on mtrand.c Linux thunder0 2.6.9-74chaos #1 SMP Wed Oct 24 08:41:12 PDT 2007 ia64 ia64 ia64 GNU/Linux attached is the log. numpy.LOG.bz2 Description: application/bzip ___ Numpy-discussion mailing list Nump

Re: [Numpy-discussion] f2py related question

2008-09-11 Thread Charles Doutriaux
Thanks robert, That's exactly the information I needed. Thanks for the link too. C. Robert Kern wrote: > On Thu, Sep 11, 2008 at 14:12, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I have a quick question that I'm hoping f2py devel

[Numpy-discussion] f2py related question

2008-09-11 Thread Charles Doutriaux
Hello, I have a quick question that I'm hoping f2py developpers will be able to quickly answer I have some C code, input type can be either int or long I'm trying to write some fortran interface to it my understanding is that integer in fortran corresponds to int integer(kind=2) matches short b

Re: [Numpy-discussion] small bug in numpy.ma.minimum.outer

2008-09-09 Thread Charles Doutriaux
Thx Pierre Pierre GM wrote: > On Tuesday 09 September 2008 14:03:04 Charles Doutriaux wrote: > >> a=numpy.ones((2,2)) >> >> >>> numpy.minimum.outer(a,a) >> >>> numpy.ma.minimum.outer(a,a) >> > > Fixed in SVN r5800. > ___

[Numpy-discussion] compressed and sqrt in numpy.ma

2008-09-09 Thread Charles Doutriaux
The following is causing our code to crash, shouldn't .data be just ones ? >>> a = numpy.ma.ones((2,2)) >>> b = numpy.ma.sqrt(a) >>> b.compressed().data ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/l

[Numpy-discussion] small bug in numpy.ma.minimum.outer

2008-09-09 Thread Charles Doutriaux
a=numpy.ones((2,2)) >>> numpy.minimum.outer(a,a) array( 1., 1.], [ 1., 1.]], [[ 1., 1.], [ 1., 1.]]], [[[ 1., 1.], [ 1., 1.]], [[ 1., 1.], [ 1., 1.) >>> numpy.ma.minimum.outer(a,a) Traceback (most recent call last):

Re: [Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-03 Thread Charles Doutriaux
Thanks for spotting the origin, I'll pass this along to our user maybe they'll be able to figure out how to build python w/o openssl C. Robert Kern wrote: > On Wed, Sep 3, 2008 at 10:39, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > >> Hi Robert, >>

Re: [Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-03 Thread Charles Doutriaux
ne and i have a working import md5. I'm not sure of what's going on. Usually the build is fine. C. Robert Kern wrote: On Tue, Sep 2, 2008 at 16:40, Charles Doutriaux <[EMAIL PROTECTED]> wrote: Joseph, Ok all failed because numpy couldn't build... It's looking f

[Numpy-discussion] numpy 1.1.1 fails because of missing md5

2008-09-02 Thread Charles Doutriaux
Joseph, Ok all failed because numpy couldn't build... It's looking for md5 on my machine i type: whereis md5 md5: /usr/include/md5.h /usr/share/man/man1/md5.1ssl.gz /usr/share/man/man3/md5.3ssl.gz I'm ccing the numpy discussion list on this. The numpy we're trying to build is 1.1.1 I'm attac

Re: [Numpy-discussion] numpy build fail under cygwin (Vista)

2008-08-20 Thread Charles Doutriaux
Thx David, Is there any plans on applying the suggested fix into numpy ? C. David Cournapeau wrote: > On Wed, Aug 20, 2008 at 8:04 AM, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > >> Hi both trunk and 1.1.1 fail to build under cygwin vista (latest version) >> >&g

[Numpy-discussion] numpy build fail under cygwin (Vista)

2008-08-20 Thread Charles Doutriaux
Hi both trunk and 1.1.1 fail to build under cygwin vista (latest version) I'm copy/pasting the end of the log C. copying numpy/doc/reference/__init__.py -> build/lib.cygwin-1.5.25-i686-2.5/numpy/doc/reference running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext cust

[Numpy-discussion] masked_equal not commutative

2008-08-12 Thread Charles Doutriaux
As always as i clicked send i realized my error it is indeed not commutative and that makes sense but i'm not sure the case: numpy.ma.masked_equal(1,a) should have worked, since we don't really know how to do this comparison, the only thing that could make sense would be commutation but i thinks

[Numpy-discussion] masked_equal not commutative?

2008-08-12 Thread Charles Doutriaux
Hi I'm using 1.1.1 and found that numpy.ma.masked_equal is not commutative! I would expect it to be in this case. Or raise an error for uncompatible shape in the first case, no ? >>> a = numpy.ma.arange(100) >>> a.shape=(10,10) >>> b=numpy.ma.masked_equal(1,a) >>> b Traceback (most recent cal

Re: [Numpy-discussion] min() of array containing NaN

2008-08-11 Thread Charles Doutriaux
Seems to me like min should automagically call nanmin if it spots any nan no ? C. Fabrice Silva wrote: > Try nanmin function : > > $ python > Python 2.5.2 (r252:60911, Jul 31 2008, 07:39:27) > [GCC 4.3.1] on linux2 > Type "help", "copyright", "credits" or "licen

Re: [Numpy-discussion] 64bit issue?

2008-08-05 Thread Charles Doutriaux
Wow! It did it! Is there other little tricks like this one I should track? Thanks a lot! It would have take me days to track this one! C. Charles R Harris wrote: > > > On Tue, Aug 5, 2008 at 1:14 PM, Charles Doutriaux <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>

Re: [Numpy-discussion] 64bit issue?

2008-08-05 Thread Charles Doutriaux
Hi chuck, works great on 32bit int *dims; dims = (int *)malloc(self->nd*sizeof(int)); and self->nd is 3 C. Charles R Harris wrote: > > > On Tue, Aug 5, 2008 at 12:20 PM, Charles Doutriaux > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > >

[Numpy-discussion] 64bit issue?

2008-08-05 Thread Charles Doutriaux
Hello I'm running into some strange error on a 64bit machine, I tracked it down to this line returning a NULL pointer, any idea why is this? I tried both numpy1.1.1 and what in trunk, numpy.test() passes for both Ok here's the uname of the machine and the offending line: Linux quartic.txcorp.com

Re: [Numpy-discussion] [Cdat-discussion] Arrays containing NaNs

2008-07-25 Thread Charles Doutriaux
simple as possible) Thanks again for the answer. C. Pierre GM wrote: > Oh, I guess this one's for me... > > On Thursday 01 January 1970 04:21:03 Charles Doutriaux wrote: > > >> Basically it was suggested to automarically mask NaN (and Inf ?) when >> creating ma.

Re: [Numpy-discussion] [Cdat-discussion] Arrays containing NaNs

2008-07-25 Thread Charles Doutriaux
I mean not having to it myself. data is a numpy array with NaN in it masked_data = numpy.ma.array(data) returns a masked array with a mask where NaN were in data C. Bruce Southey wrote: > Charles Doutriaux wrote: > >> Hi Bruce, >> >> Thx for the reply, we're

Re: [Numpy-discussion] [Cdat-discussion] Arrays containing NaNs

2008-07-25 Thread Charles Doutriaux
Hi Bruce, Thx for the reply, we're aware of this, basically the question was why not mask NaN automatically when creating a nump.ma array? C. Bruce Southey wrote: > Charles Doutriaux wrote: > >> Hi Stephane, >> >> This is a good suggestion, I'm ccing t

Re: [Numpy-discussion] [Cdat-discussion] Arrays containing NaNs

2008-07-25 Thread Charles Doutriaux
; > Yup, this works. Thanks! > > I guess it's time for me to dig deeper into numpy syntax and > functions, now that CDAT is using the numpy core for array > management... > > Best, > > Arthur > > > Charles Doutriaux wrote: > >

Re: [Numpy-discussion] [Cdat-discussion] Arrays containing NaNs

2008-07-25 Thread Charles Doutriaux
r into numpy syntax and > functions, now that CDAT is using the numpy core for array > management... > > Best, > > Arthur > > > Charles Doutriaux wrote: > > Seems right to me, > > Except that the syntax might scare a bit the new us

[Numpy-discussion] bug in ma ?

2008-07-21 Thread Charles Doutriaux
Hello, I think i found a bug in numpy.ma I tried it both with the trunk and the 1.1 version import numpy a= numpy.ma.arange(256) a.shape=(128,2) b=numpy.reshape(a,(64,2,2)) Traceback (most recent call last): File "quick_test_reshape.py", line 7, in b=numpy.reshape(a,(64,2,2)) File "

Re: [Numpy-discussion] svd

2008-07-16 Thread Charles Doutriaux
doh... Thanks Charles... I guess I've been staring at this code for too long now... C. Charles R Harris wrote: > > > On Wed, Jul 16, 2008 at 3:58 PM, Charles Doutriaux > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > Hello, > > I

[Numpy-discussion] svd

2008-07-16 Thread Charles Doutriaux
Hello, I'm using 1.1.0 and I have a bizarre thing happening it seems as if: doing: import numpy SVD = numpy.linalg.svd if different as doing import numpy.oldnumeric.linear_algebra SVD = numpy.oldnumeric.linear_algebra.singular_value_decomposition In the first case passing an array (204,1484) re

Re: [Numpy-discussion] kinds

2008-07-16 Thread Charles Doutriaux
Thx Pierre, That's exactly what i was looking for C. Pierre GM wrote: > On Wednesday 16 July 2008 15:08:59 Charles Doutriaux wrote: > > >> and a bunch of similar flags that would basically tell you the limits on >> the machine you're running (or at least compil

[Numpy-discussion] kinds

2008-07-16 Thread Charles Doutriaux
Hello, A long long time ago, there used to be this module named "kinds" It's totally outdated nowdays but it had one nice functionality and i was wondering if you knew how to reproduce that it was: maxexp=kinds.default_float_kind.MAX_10_EXP minexp=kinds.default_float_kind.MIN_10_EXP and a bunc

[Numpy-discussion] quick question about numpy deprecation warnings

2008-07-15 Thread Charles Doutriaux
Hi I have a quick question and i hope somebody can answer me (I admit I should first really check the numpy doc) I have been porting old Numeric based C code to numpy/numpy.ma for the alst couple weeks. Just as I thought I was done, this morning I updatethe numpy trunk and I now get the follow

Re: [Numpy-discussion] _md5 module?

2008-06-24 Thread Charles Doutriaux
so you might as well want to replace it. C. Charles R Harris wrote: > > > On Tue, Jun 24, 2008 at 10:07 AM, Charles Doutriaux > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > Hello on redhat enterprise 5 i get this with numpy 1.1 and python 2.5

[Numpy-discussion] _md5 module?

2008-06-24 Thread Charles Doutriaux
Hello on redhat enterprise 5 i get this with numpy 1.1 and python 2.5 Any idea if we can get around tihs? short of rebuilding python with md5 support i guess. Shouldn't numpy catch that before building? C. "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/__init__.py

Re: [Numpy-discussion] building 1.1.0 on 64bit, seems to be stuck on infinite loop or something

2008-06-18 Thread Charles Doutriaux
Hi there, looks like it, moving from gcc3.3.4 to gcc4.1.2 seems to have fix it. Thx, C. David Cournapeau wrote: > Charles Doutriaux wrote: > >> Hello, >> >> I'm trying to build 1.1.0 on a: >> Linux thunder0 2.6.9-74chaos #1 SMP Wed Oct 24 08:41:12 PD

Re: [Numpy-discussion] building 1.1.0 on 64bit, seems to be stuck on infinite loop or something

2008-06-18 Thread Charles Doutriaux
008 at 3:40 PM, Charles Doutriaux > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > Hello, > > I'm trying to build 1.1.0 on a: > Linux thunder0 2.6.9-74chaos #1 SMP Wed Oct 24 08:41:12 PDT 2007 ia64 > ia64 ia64 GNU/Linux > >

Re: [Numpy-discussion] building 1.1.0 on 64bit, seems to be stuck on infinite loop or something

2008-06-17 Thread Charles Doutriaux
Just so it might help debuging, when i kill it i get: _exec_command_posix failed (status=2) C. Charles Doutriaux wrote: > Hello, > > I'm trying to build 1.1.0 on a: > Linux thunder0 2.6.9-74chaos #1 SMP Wed Oct 24 08:41:12 PDT 2007 ia64 > ia64 ia64 GNU/Linux > > using

[Numpy-discussion] building 1.1.0 on 64bit, seems to be stuck on infinite loop or something

2008-06-17 Thread Charles Doutriaux
Hello, I'm trying to build 1.1.0 on a: Linux thunder0 2.6.9-74chaos #1 SMP Wed Oct 24 08:41:12 PDT 2007 ia64 ia64 ia64 GNU/Linux using python 2.5 (latest stable) It seems to be stuck forever at the end of that output: anybody ran into this? ~/CDAT/5.0.0.beta1/bin/python setup.py install Runni

Re: [Numpy-discussion] One more wrinkle in going to 5.0

2008-06-05 Thread Charles Doutriaux
Arthur I'm forwarding your question to the numpy list, I'm hoping somebody there will be able to help you with that. C. Arthur M. Greene wrote: > Hi All, > > This does not involve the CDAT-5 code, but rather files pickled under > earlier versions of CDAT. These files store the variable type alo

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-08 Thread Charles Doutriaux
I don't think it is reasonable to say the trunk is in good shape when the power function does not work... Just my thoughts... C. Charles R Harris wrote: > Hi Jarrod, > > On Tue, May 6, 2008 at 2:40 AM, Jarrod Millman <[EMAIL PROTECTED] > > wrote: > > Hey, > >

[Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Charles Doutriaux
The following code works with numpy.ma but not numpy.oldnumeric.ma, obviously it shouldn't have missing values... Note that replacing 2. with 2 (int) works, dtype does not seem to matter import numpy.oldnumeric.ma as MA,numpy s = MA.array([ 12.16271591, 11.19478798, 10.27440453, 9.60334778, 9.

Re: [Numpy-discussion] numpy.ma question

2008-04-30 Thread Charles Doutriaux
that's exactly my understanding thanks for confirming C. Pierre GM wrote: > Charles, > > >> but not: >> import numpy.ma as MA >> a0= MA.array(0)/0 >> a1= MA.array((0,0))/0 >> >> Is that a bug ? >> > > That a0 is MA.masked is not a bug. That a1 should be a (2,) array masked > everywhere s

[Numpy-discussion] oldnumeric.MA behaviour broken ?

2008-04-30 Thread Charles Doutriaux
HI, import numpy.oldnumeric.ma as MA a0= MA.array(0)/0 sh0=list(a0.shape) sh0.insert(0,1) b0=MA.resize(a0,sh0) Does not work anymore, I believe it used to work It does works using numpy.ma (but i can't subclass these yet...) C. ___ Numpy-discussion

[Numpy-discussion] numpy.ma question

2008-04-30 Thread Charles Doutriaux
Hello i have a quick question about MA ans scalar the following works: import numpy.ma as MA a0= MA.array(0)/1 a1= MA.array((0,0))/1 but not: import numpy.ma as MA a0= MA.array(0)/0 a1= MA.array((0,0))/0 Is that a bug ? I'm using numpy 1.0.5.dev4958 and also whats in trunk right now (1.1.0.dev

Re: [Numpy-discussion] numpy release

2008-04-25 Thread Charles Doutriaux
Anne Archibald wrote: > Yes, well, it really looks unlikely we will be able to agree on what > the correct solution is before 1.1, so I would like to have something > non-broken for that release. > +1 on that! ___ Numpy-discussion mailing list Numpy-d

[Numpy-discussion] bz2

2008-04-17 Thread Charles Doutriaux
Hi, Just so you know, yesterday i was doing some test on a fresh ubuntu installation, trying to figure out the external minimum dependencies for our system. I built (from sources) python (2.5.2) then numpy. All seemed ok, but when importing numpy i had an error, trying to import module bz2

Re: [Numpy-discussion] Release of NumPy

2008-04-15 Thread Charles Doutriaux
As a developper for a community that's using massively the old numeric maksed arrays (MA), I'll just add my 2 cents worth... I think what's in the trunk right now (at least last week) is ok, the new ma, with the oldnumeric.ma This allow to still be backward compatible for a while and change our

[Numpy-discussion] float32 is not a float ?

2008-04-10 Thread Charles Doutriaux
Hello, I guess this maybe "normal" but it breaks a lot of thing when conterting from Numeric >>> a=numpy.ones(5,dtype=numpy.float32) >>> isinstance(a[0],float) False >>> float64 works... I can see why one could argue for returning False, but then the converter might be too zealous things t

Re: [Numpy-discussion] numpy.ma dtype.char set to "?"

2008-04-09 Thread Charles Doutriaux
Sorry, I can answer my own question (page 22 of numpy book) booleans are supposed to be "?" my mistake. C. Charles Doutriaux wrote: > Hi I'm tracked down a bug in our code back to the numpy.ma > > s2=numpy.array([[10,60],[65,45]]) > s3=numpy.ma.masked_greater(s

[Numpy-discussion] numpy.ma dtype.char set to "?"

2008-04-09 Thread Charles Doutriaux
Hi I'm tracked down a bug in our code back to the numpy.ma s2=numpy.array([[10,60],[65,45]]) s3=numpy.ma.masked_greater(s2,50.) s3.mask.dtype.char returns: '?' In the Numeric -> numpy.ma (page 35) the "?" is not listed. Is it an omission in numpy.ma ? Or is it a valid char type ? s3.dtype does s

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-03 Thread Charles Doutriaux
all your help on this issue! C. Travis E. Oliphant wrote: > Charles Doutriaux wrote: > >> Hi Travis, >> Ok we're almost there, in my test suite i get: >> maresult = numpy.core.ma.take(ta, indices, axis=axis) >> AttributeError: 'module' object has no

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-02 Thread Charles Doutriaux
Hi Travis, Thanks, I'll fix this and let you know. (probably tomorrow because I came down with some nasty "real" bug... flue or something like that) C. Travis E. Oliphant wrote: > Charles Doutriaux wrote: > >> Hi Travis, >> Ok we're almost there, i

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
ribute 'ma' I don't know if it was automatically put there by the converter or if we put it by hand. If it's the first one, you might want to correct this, otherwise don't worry it's easy enough to fix (i think ?) C. Travis E. Oliphant wrote: > Charles Doutriau

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
efined C. Travis E. Oliphant wrote: > Charles Doutriaux wrote: > >> Hi Pierre, >> >> I"m ccing Bob on this, he's the main developper for cdms2 package. >> > I've uploaded the original ma.py file back into oldnumeric so that > oldnumeric

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
Hi Pierre, I"m ccing Bob on this, he's the main developper for cdms2 package. At this point I think Travis original suggestion was the best. We should leave it like it was for 1.0.5 There's a lot of changes to do in order to get the backward compatibility going. And I feel it should wait until

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-28 Thread Charles Doutriaux
Hi Pierre, Hum... something is still broken. But maybe you can help me figuring out if something dramtically changed We're defining a new class object MaskedVariable which inherit from our other class: AbstractVariable (in which we define a reorder function for the obects) and from MaskedArray

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-28 Thread Charles Doutriaux
Hi Pierre, I just tested it out, I'm still missing from numpy.oldnumeric.ma import common_fill_value , set_fill_value which breaks the code later C. Pierre GM wrote: > All, > Would you mind trying the SVN (ver > 4946) and let me know what I'm still > missing ? > Thanks a lot in advance > P. > _

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-27 Thread Charles Doutriaux
Hello, Ok, I'll wait for Pierre's changes and see what it does for us. If it still breaks here or there then i'll do as Travis suggested (while still reporting to Pierre what went wrong). Thank you all, C. Travis E. Oliphant wrote: > Jarrod Millman wrote: > >> On Thu, Mar 27, 2008 at 1:31

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-27 Thread Charles Doutriaux
Hi Pierre, No problem, let me know when you have something in. I can't be sure all I mentioned is all that's missing. It's all I got so far. But since I can't get our end going. I can't really give you a comprehensive list of what's exactly missing. Hopefully this is all and it will work fine a

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-27 Thread Charles Doutriaux
there as far as transition, why undoing it? I really don't mind help you i the process if you want. C. Eric Firing wrote: > Charles Doutriaux wrote: > >> The reorder is a function we implement. By digging a bit into this my >> guess is that all the missing function in nu

Re: [Numpy-discussion] missing function in numpy.ma?

2008-03-26 Thread Charles Doutriaux
The reorder is a function we implement. By digging a bit into this my guess is that all the missing function in numpy.ma are causing to fail at some point in our init and returning the wrong object type. But the whole idea was to keep a backward compatible layer with Numeric and MA. It worked g

[Numpy-discussion] missing function in numpy.ma?

2008-03-26 Thread Charles Doutriaux
Hello, I used to be able to inherit form nump.oldnumeric.ma.array, it looks like you can't any longer. I replaced it with: numpy.ma.MaskedArray i'm getting: result = result.reorder(order).regrid(grid) AttributeError: 'MaskedArray' object has no attribute 'reorder' Should I inherit from soemtih

Re: [Numpy-discussion] f2py changed ?

2008-03-25 Thread Charles Doutriaux
Hi as a follwup the latest error seems to be caused by: >>> a=numpy.array(1.) >>> a.shape () >>> numpy.asfortranarray(a).shape (1,) So in cases where my input is basically a float (but sometimes it has 3 or more dims) to gets confused C. Charles Doutriaux wrote:

[Numpy-discussion] f2py changed ?

2008-03-25 Thread Charles Doutriaux
Hello, I have an f2py module that used to work great, now it breaks, first of all the setup.py extension used to have: # f2py_options = ["--fcompiler=gfortran",], I now need to comment this out, and hope it picks up the right compiler... at the beg of the script I

Re: [Numpy-discussion] how to build a series of arrays as I go?

2008-03-17 Thread Charles Doutriaux
Hi Chris, 1-)You could use the concatenate function to grow an array as you go. 2-) assumnig you still have your list b=numpy.array(data[name]) bmasked=numpy.ma.masked_equal(b,-1) Chris Withers wrote: > Hi All, > > I'm using xlrd to read an excel workbook containing several columns of > data

[Numpy-discussion] numpy.array.ma class init

2008-03-13 Thread Charles Doutriaux
lass bases function() argument 1 must be code, not str >>> numpy.oldnumeric.ma Any suggestion on how to fix that? Thx, C Charles Doutriaux wrote: > Hi Stephan, > > Does the converter from Numeric fixes that? I mean runnning it on an old > Numeric script will import

Re: [Numpy-discussion] numpy from subversion

2008-03-13 Thread Charles Doutriaux
Hi Stephan, Does the converter from Numeric fixes that? I mean runnning it on an old Numeric script will import numpy.ma, does it still replace with numpy.oldnumeric.ma? Thx, C. Stéfan van der Walt wrote: > On Wed, Mar 12, 2008 at 11:39 AM, Charles Doutriaux <[EMAIL PROTECTED]&

Re: [Numpy-discussion] numpy from subversion

2008-03-12 Thread Charles Doutriaux
dule named ma How does one build ma these days? C. Charles Doutriaux wrote: > I just subversioned to the latest numpy, i get: > > Any idea? > > Thx, > > >>> import numpy > Traceback (most recent call last): > File "", line 1, in > Fi

[Numpy-discussion] numpy from subversion

2008-03-12 Thread Charles Doutriaux
I just subversioned to the latest numpy, i get: Any idea? Thx, >>> import numpy Traceback (most recent call last): File "", line 1, in File "/export/svn/Numpy/trunk/numpy/__init__.py", line 27, in ImportError: No module named __config__ ___ Nump

[Numpy-discussion] bug in f2py on Mac 10.5 ?

2008-03-06 Thread Charles Doutriaux
Hello, we're trying to install fortran extension with f2py, works great on linux, mac 10.4 (gfortran and g77) but on 10.5, it picks up g77 and then complains about cc_dynamic library. Apparently this lib is not part os 10.5 (Xcode), is that a known problem? Should we try with what's in trunk?