Re: [Numpy-discussion] Should bool_ subclass int?

2007-07-06 Thread Travis Oliphant
Timothy Hochberg wrote: > > I'm working on getting some old code working with numpy and I noticed > that bool_ is not a subclass of int. Given that python's bool > subclasses into and that the other scalar types are subclasses of > their respective counterparts it seems at first glance that > n

Re: [Numpy-discussion] convert csv file into recarray without pre-specifying dtypes and variable names

2007-07-06 Thread John Hunter
On 7/6/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > I wrote the attached (small) program to read in a text/csv file with > different data types and convert it into a recarray without having to > pre-specify the dtypes or variables names. I am just too lazy to type-in > stuff like that :) The suppo

[Numpy-discussion] convert csv file into recarray without pre-specifying dtypes and variable names

2007-07-06 Thread Vincent Nijs
I wrote the attached (small) program to read in a text/csv file with different data types and convert it into a recarray without having to pre-specify the dtypes or variables names. I am just too lazy to type-in stuff like that :) The supported types are int, float, dates, and strings. I works pre

Re: [Numpy-discussion] segfault caused by incorrect Py_DECREF in ufunc

2007-07-06 Thread Tom Denniston
Thanks! On 7/6/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Tom Denniston wrote: > > >Below is the code around line 900 for ufuncobject.c > >(http://svn.scipy.org/svn/numpy/trunk/numpy/core/src/ufuncobject.c) > > > >There is a decref labeled with ">>>" below that is incorrect. As per > >the p

Re: [Numpy-discussion] Should bool_ subclass int?

2007-07-06 Thread Robert Kern
Timothy Hochberg wrote: > > I'm working on getting some old code working with numpy and I noticed > that bool_ is not a subclass of int. Given that python's bool subclasses > into and that the other scalar types are subclasses of their respective > counterparts it seems at first glance that numpy.

Re: [Numpy-discussion] [SciPy-dev] PEP 368: Standard image protocol and class

2007-07-06 Thread Lino Mastrodomenico
2007/7/4, Bill Baxter <[EMAIL PROTECTED]>: > I think a PEP that aims to be a generic image protocol should > support at least 32 bit floats if not 64-bit doubles and 16 bit > "Half"s used by some GPUs (and supported by the OpenEXR format). Yes, the next version of the PEP will include float16 and

[Numpy-discussion] Should bool_ subclass int?

2007-07-06 Thread Timothy Hochberg
I'm working on getting some old code working with numpy and I noticed that bool_ is not a subclass of int. Given that python's bool subclasses into and that the other scalar types are subclasses of their respective counterparts it seems at first glance that numpy.bool_ should subclass python's boo

Re: [Numpy-discussion] segfault caused by incorrect Py_DECREF in ufunc

2007-07-06 Thread Travis Oliphant
Tom Denniston wrote: >Below is the code around line 900 for ufuncobject.c >(http://svn.scipy.org/svn/numpy/trunk/numpy/core/src/ufuncobject.c) > >There is a decref labeled with ">>>" below that is incorrect. As per >the python documentation >(http://docs.python.org/api/dictObjects.html): > >#PyOb

Re: [Numpy-discussion] how do I configure with gfortran

2007-07-06 Thread Mathew
nope. try again % python setup.py -v config_fc --fcompiler=gfortran install Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_3882 blas_opt_info: blas_mkl_info: ( library_dirs = /u/vento0/myeates/lib:/usr/lib ) ( include_dirs = /usr/include:/u/

Re: [Numpy-discussion] how do I configure with gfortran

2007-07-06 Thread David M. Cooke
On Jul 2, 2007, at 12:02 , Andrew Jaffe wrote: > I wrote: > >> This is slightly off-topic, but probably of interest to anyone >> reading >> this thread: >> >> Is there any reason why we don't use --fcompiler=gfortran as an alias >> for --fcompiler=gfortran (and --fcompiler=g77 as an alias for >>

[Numpy-discussion] ANN: SciPy Conference Early Registration Reminder

2007-07-06 Thread Travis Vaught
Greetings, The *SciPy 2007 Conference on Scientific Computing with Python* early registration deadline is July 15, 2007. After this date, the price for registration will increase from $150 to $200. More information on the Conference is here: http://www.scipy.org/ SciPy2007 The registration