Re: [Numpy-discussion] Unused private functions

2008-07-13 Thread Charles R Harris
On Sun, Jul 13, 2008 at 6:26 PM, Alan McIntyre <[EMAIL PROTECTED]> wrote: > Does anybody know whether there's any reason to keep the following > functions? They don't appear to be used anywhere. > > linalg/linalg.py:95 _castCopyAndTranspose > lib/function_base.py:659 _asarray1d > __ +1 to remov

Re: [Numpy-discussion] Run np.test() twice, get message.

2008-07-13 Thread Alan McIntyre
On Mon, Jul 14, 2008 at 1:31 AM, Charles R Harris <[EMAIL PROTECTED]> wrote: > Any idea what this is: > > *** DocTestRunner.merge: '__main__' in both testers; summing outcomes. Hmm..that's coming from nose. I'll see what it's about tomorrow. ___ Numpy-d

Re: [Numpy-discussion] Schedule for 1.1.1

2008-07-13 Thread Charles R Harris
On Tue, Jul 8, 2008 at 6:21 PM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi, > I haven't checked out a recent numpy (( >>> N.__version__ > '1.0.3.1')) > But could someone please check if the division has been changed from > '/' to '//' in these places: > > C:\Priithon_25_win\numpy\core\numeric

[Numpy-discussion] Run np.test() twice, get message.

2008-07-13 Thread Charles R Harris
Alan, Any idea what this is: *** DocTestRunner.merge: '__main__' in both testers; summing outcomes. Chuck ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] snprintf vs PyOS_snprintf

2008-07-13 Thread Travis E. Oliphant
Robert Kern wrote: > On Sat, Jul 12, 2008 at 13:11, Charles R Harris > <[EMAIL PROTECTED]> wrote: > >> Numpy uses a mix of snprintf and PyOS_snprintf. The Python version is there >> because snprintf wasn't part of the standard until C99. So either we should >> stick to the python version or make

[Numpy-discussion] Newly deprecated API functions

2008-07-13 Thread Charles R Harris
The following numpy API functions have been deprecated and will be removed in 1.3 PyArray_FromDims PyArray_FromDimsAndDataAndDescr PyArray_As1D If there are other functions that should be added to the list, let me know. Chuck ___ Numpy-discussion maili

[Numpy-discussion] Unused private functions

2008-07-13 Thread Alan McIntyre
Does anybody know whether there's any reason to keep the following functions? They don't appear to be used anywhere. linalg/linalg.py:95 _castCopyAndTranspose lib/function_base.py:659 _asarray1d ___ Numpy-discussion mailing list Numpy-discussion@scipy.o

[Numpy-discussion] Is PyArray_AsCArray really the best replacement for deprecated PyArray_As1D?

2008-07-13 Thread Charles R Harris
Just askin'. Neither is mentioned in the numpy book. Chuck ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] binary_repr dtype dependence

2008-07-13 Thread Stéfan van der Walt
Hi Ralf 2008/7/13 Ralf Gommers <[EMAIL PROTECTED]>: > Hi all, > > binary_repr() behaves differently for different types of ints/uints: > > In [210]: binary_repr(255) > Out[210]: '' > > In [211]: binary_repr(uint32(255)) > Out[211]: '' > > In [212]: binary_repr(uint16(255)) > Out[21

[Numpy-discussion] binary_repr dtype dependence

2008-07-13 Thread Ralf Gommers
Hi all, binary_repr() behaves differently for different types of ints/uints: In [210]: binary_repr(255) Out[210]: '' In [211]: binary_repr(uint32(255)) Out[211]: '' In [212]: binary_repr(uint16(255)) Out[212]: '1' In [213]: np.__version__ Out[213]: '1.0.4' Is this intended/acc

Re: [Numpy-discussion] trapz documentation on Examples pages

2008-07-13 Thread Alan G Isaac
On Sun, 13 Jul 2008, (UTC) Pauli Virtanen apparently wrote: > The "... With Doc" is the automatically generated one. It appears that > "trapz" does not have additional examples, only the "builtin" reference > documentation, so it is not listed on the latter page. So do I understand that if I'd

Re: [Numpy-discussion] trapz documentation on Examples pages

2008-07-13 Thread Pauli Virtanen
Sun, 13 Jul 2008 11:55:01 -0400, Alan G Isaac wrote: > There are two examples pages: > http://www.scipy.org/Numpy_Example_List_With_Doc > http://www.scipy.org/Numpy_Example_List > > The latter says: > > This page contains a large database of examples demonstrating most > of the Numpy fun

Re: [Numpy-discussion] trapz

2008-07-13 Thread Alan G Isaac
One other thing: I believe ``trapz`` could get a small efficiency gain by returning (dx * (y[slice1]+y[slice2])).sum(axis=axis)/2.0 Cheers, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listi

Re: [Numpy-discussion] Doctests for extensions/cython code

2008-07-13 Thread Alan McIntyre
On Sun, Jul 13, 2008 at 2:32 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > For numpy, we obviously must first remove all the ipython-specific > code from there. The two plugins are separated, so it's perfectly > doable, I just ran out of time. I'm putting it here in the hopes that > it will be

Re: [Numpy-discussion] loadtxt and N/A

2008-07-13 Thread Lorenzo Bolla
you can use the 'converters' keyword in numpy.loadtxt. first define a function to convert a string in a float, that can handle your 'N/A' entries: def converter(x): if x == 'N/A': return numpy.nan else: return float(x) then use: >>> numpy.loadtxt('test.dat', converters={1

[Numpy-discussion] trapz documentation on Examples pages

2008-07-13 Thread Alan G Isaac
There are two examples pages: http://www.scipy.org/Numpy_Example_List_With_Doc http://www.scipy.org/Numpy_Example_List The latter says: This page contains a large database of examples demonstrating most of the Numpy functionality. Numpy Example List With Doc has these examples inter

[Numpy-discussion] loadtxt and N/A

2008-07-13 Thread Bryan Fodness
I am using loadtxt and I have missing values that are show up as N/A. I get a, ValueError: invalid literal for float(): N/A Is there a way to ignore these? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/l

Re: [Numpy-discussion] Schedule for 1.2.0

2008-07-13 Thread Jarrod Millman
On Sun, Jul 13, 2008 at 1:51 AM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > Here is the schedule for 1.2.0: > - 8/05/08 tag the 1.1.1rc1 release and prepare packages > - 8/12/08 tag the 1.1.1rc2 release and prepare packages > - 8/23/08 tag the 1.1.1 release and prepare packages > -

[Numpy-discussion] Schedule for 1.2.0

2008-07-13 Thread Jarrod Millman
The NumPy 1.2.0 release date (8/24/08) is rapidly approaching and we need everyone's help. David Cournapeau has volunteered to take the lead on coordinating this release. The main focus of this release is on improved documentation and a new testing framework based on nose with only a few new feat

Re: [Numpy-discussion] How to handle a busted API?

2008-07-13 Thread Robert Kern
On Sun, Jul 13, 2008 at 02:17, Charles R Harris <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 13, 2008 at 12:53 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> >> On Sun, Jul 13, 2008 at 01:49, Charles R Harris >> <[EMAIL PROTECTED]> wrote: >> > >> > On Sun, Jul 13, 2008 at 12:02 AM, Robert Kern <[EMAIL

Re: [Numpy-discussion] How to handle a busted API?

2008-07-13 Thread Charles R Harris
On Sun, Jul 13, 2008 at 12:53 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Sun, Jul 13, 2008 at 01:49, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > > > On Sun, Jul 13, 2008 at 12:02 AM, Robert Kern <[EMAIL PROTECTED]> > wrote: > > >> Compile-time warnings will be ignored if they aren't err