Re: [Numpy-discussion] slow import of numpy modules

2008-07-03 Thread Robert Kern
On Wed, Jul 2, 2008 at 23:56, David Cournapeau [EMAIL PROTECTED] wrote: On Wed, 2008-07-02 at 23:36 -0500, Robert Kern wrote: Neither one has participated in this thread. At least, no such email has made it to my inbox. This was in the thread import numpy is slow, I mixed the two, sorry. Ah

Re: [Numpy-discussion] slow import of numpy modules

2008-07-03 Thread David Cournapeau
On Thu, 2008-07-03 at 01:25 -0500, Robert Kern wrote: Before: $ time python -c import numpy python -c import numpy 0.30s user 0.82s system 91% cpu 1.232 total Removal of finfo: $ time python -c import numpy python -c import numpy 0.27s user 0.82s system 94% cpu 1.156 total Removal

Re: [Numpy-discussion] slow import of numpy modules

2008-07-03 Thread Fernando Perez
Hardy, Core 2 Duo laptop, picking a typical score, warm disk caches. Before: maqroll[research] time python -c 'import numpy' 0.180u 0.032s 0:00.20 105.0%0+0k 0+0io 0pf+0w After: maqroll[research] time python -c 'import numpy' 0.100u 0.032s 0:00.12 108.3%0+0k 0+0io 0pf+0w Definitely a

Re: [Numpy-discussion] import numpy is slow

2008-07-03 Thread Robert Kern
On Mon, Jun 30, 2008 at 18:32, Andrew Dalke [EMAIL PROTECTED] wrote: Why does numpy/__init__.py need to import all of these other modules and submodules? Any chance of cutting down on the number, in order to improve startup costs? Can you try the SVN trunk? In another thread (it must be numpy

Re: [Numpy-discussion] Running doctests on buildbots

2008-07-03 Thread Stéfan van der Walt
2008/6/30 Robert Kern [EMAIL PROTECTED]: On Mon, Jun 30, 2008 at 14:06, Alan McIntyre [EMAIL PROTECTED] wrote: On Mon, Jun 30, 2008 at 2:55 PM, Robert Kern [EMAIL PROTECTED] wrote: Add the doctests argument. Where is the buildbot configuration kept? I have not the slightest idea. Stéfan?

Re: [Numpy-discussion] Should we fix Ticket #709?

2008-07-03 Thread Zbyszek Szmek
On Wed, Jul 02, 2008 at 10:55:12PM +0200, Stéfan van der Walt wrote: 2008/7/2 Zbyszek Szmek [EMAIL PROTECTED]: That's Ticket #709 http://projects.scipy.org/scipy/numpy/ticket/709: I'm faily sure that: numpy.isnan(datetime.datetime.now() ...should just return False and not raise an

Re: [Numpy-discussion] Running doctests on buildbots

2008-07-03 Thread Alan McIntyre
On Thu, Jul 3, 2008 at 3:16 AM, Stéfan van der Walt [EMAIL PROTECTED] wrote: Sorry for the slow response, I'm still catching up. I think if we turned on doctests right now, there would be about 100 test failures, so I've got plenty of my own catching up to do before doctests really need to be

[Numpy-discussion] Numpy Array filling

2008-07-03 Thread Brain Stormer
I am using numpy to create an array then filling some of the values using a for loop, I was wondering if there is way to easily fill the values without iterating through sort of like array.fill[start:stop,start:stop]? The reason for my question is, in some cases, I might have to fill hundreds

Re: [Numpy-discussion] Numpy Array filling

2008-07-03 Thread Keith Goodman
On Thu, Jul 3, 2008 at 6:57 AM, Brain Stormer [EMAIL PROTECTED] wrote: I am using numpy to create an array then filling some of the values using a for loop, I was wondering if there is way to easily fill the values without iterating through sort of like array.fill[start:stop,start :stop]? The

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-03 Thread Charles R Harris
On Thu, Jul 3, 2008 at 2:00 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Wednesday 02 July 2008, Charles R Harris escrigué: On Wed, Jul 2, 2008 at 9:58 AM, Charles R Harris [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 7:12 AM, Francesc Alted [EMAIL PROTECTED] wrote:

Re: [Numpy-discussion] Numpy Array filling

2008-07-03 Thread Damian Eads
On Thu, Jul 3, 2008 at 6:57 AM, Brain Stormer [EMAIL PROTECTED] wrote: I am using numpy to create an array then filling some of the values using a for loop, I was wondering if there is way to easily fill the values without iterating through sort of like array.fill[start:stop,start :stop]?

[Numpy-discussion] New test failure on SPARC buildbots.

2008-07-03 Thread Charles R Harris
== ERROR: test_ValidHTTP (test__datasource.TestDataSourceOpen) -- Traceback (most recent call last): File

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-03 Thread Francesc Alted
A Thursday 03 July 2008, Charles R Harris escrigué: On Thu, Jul 3, 2008 at 2:00 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Wednesday 02 July 2008, Charles R Harris escrigué: On Wed, Jul 2, 2008 at 9:58 AM, Charles R Harris [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 7:12

Re: [Numpy-discussion] New test failure on SPARC buildbots.

2008-07-03 Thread Neil Muller
On Thu, Jul 3, 2008 at 6:19 PM, Charles R Harris [EMAIL PROTECTED] wrote: == ERROR: test_ValidHTTP (test__datasource.TestDataSourceOpen) -- Traceback (most

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-03 Thread Charles R Harris
On Thu, Jul 3, 2008 at 10:27 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Thursday 03 July 2008, Charles R Harris escrigué: On Thu, Jul 3, 2008 at 2:00 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Wednesday 02 July 2008, Charles R Harris escrigué: On Wed, Jul 2, 2008 at 9:58 AM,

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-03 Thread Francesc Alted
A Thursday 03 July 2008, Charles R Harris escrigué: On Thu, Jul 3, 2008 at 10:27 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Thursday 03 July 2008, Charles R Harris escrigué: On Thu, Jul 3, 2008 at 2:00 AM, Francesc Alted [EMAIL PROTECTED] wrote: A Wednesday 02 July 2008,

Re: [Numpy-discussion] New test failure on SPARC buildbots.

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 11:41, Neil Muller [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 6:19 PM, Charles R Harris [EMAIL PROTECTED] wrote: == ERROR: test_ValidHTTP (test__datasource.TestDataSourceOpen)

Re: [Numpy-discussion] New test failure on SPARC buildbots.

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 13:50, Robert Kern [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 11:41, Neil Muller [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 6:19 PM, Charles R Harris [EMAIL PROTECTED] wrote: == ERROR:

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-03 Thread Charles R Harris
On Thu, Jul 3, 2008 at 1:30 PM, Charles R Harris [EMAIL PROTECTED] wrote: Hmm, On Thu, Jul 3, 2008 at 11:44 AM, Francesc Alted [EMAIL PROTECTED] wrote: snip Ok. But str also represents differently the 0j: In [24]: str(numpy.complex64(0)) Out[24]: '(0.0+0.0j)' In [25]:

[Numpy-discussion] Combination of element-wise and matrix multiplication

2008-07-03 Thread Jonno
I have two 2d arrays a b for example: a=array([c,d],[e,f]) b=array([g,h],[i,j]) Each of the elements of a b are actually 1d arrays of length N so I guess technically a b have shape (2,2,N). However I want to matrix multiply a b to create a 2d array x, where the elements of x are created with

[Numpy-discussion] Summer Doc Marathon status report and request for more writers

2008-07-03 Thread Joe Harrington
This is an interim status report on the Summer Documentation Marathon. It is also an invitation and plea for all experienced users to participate! I am cross-posting in an effort to get broader participation. Please hold any discussion on the scipy-dev mailing list. As you know, our immediate

[Numpy-discussion] More doctest questions

2008-07-03 Thread Alan McIntyre
Just a couple of quick questions for whomever knows: 1. Should we skip the numpy/f2py directory when looking for doctests? 2. Are the functions in numpy/lib/convdtype.py used anywhere? I can fix the doctests so they run, but I can't find anywhere they are used, so I wanted to see if they were

Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 18:49, Alan McIntyre [EMAIL PROTECTED] wrote: Just a couple of quick questions for whomever knows: 1. Should we skip the numpy/f2py directory when looking for doctests? I don't see anything there that should cause problems (according to my understanding of the

Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Alan McIntyre
On Thu, Jul 3, 2008 at 8:26 PM, Robert Kern [EMAIL PROTECTED] wrote: 1. Should we skip the numpy/f2py directory when looking for doctests? I don't see anything there that should cause problems (according to my understanding of the collector). Are you seeing problems? Actually it's a problem

Re: [Numpy-discussion] More doctest questions

2008-07-03 Thread Robert Kern
On Thu, Jul 3, 2008 at 19:42, Alan McIntyre [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 8:26 PM, Robert Kern [EMAIL PROTECTED] wrote: 1. Should we skip the numpy/f2py directory when looking for doctests? I don't see anything there that should cause problems (according to my understanding

Re: [Numpy-discussion] Should we fix Ticket #709?

2008-07-03 Thread Gael Varoquaux
On Wed, Jul 02, 2008 at 10:55:12PM +0200, Stéfan van der Walt wrote: I agree with Chuck's rationale [if someone asks me whether a peanut butter sandwhich is a Koala bear, then I'd say no, without trying to cast the sandwhich to a mammal], Man, you need to get more sleep. Gaël

Re: [Numpy-discussion] Should we fix Ticket #709?

2008-07-03 Thread Sebastian Haase
On Fri, Jul 4, 2008 at 6:34 AM, Gael Varoquaux [EMAIL PROTECTED] wrote: On Wed, Jul 02, 2008 at 10:55:12PM +0200, Stéfan van der Walt wrote: I agree with Chuck's rationale [if someone asks me whether a peanut butter sandwhich is a Koala bear, then I'd say no, without trying to cast the