Re: [Numpy-discussion] Numpy Example List with Doc updates

2008-01-24 Thread Sebastian Haase
On Jan 24, 2008 11:07 PM, Filip Wasilewski <[EMAIL PROTECTED]> wrote: > Hi all, > > Just a small note. I've updated the `Numpy Example List With Doc`[1] > that is linked from the main doc index. Because I'm not always in the > loop and the page likes to get out of sync with the base `Numpy > Exampl

Re: [Numpy-discussion] segfault problem with numpy and pickle

2008-01-24 Thread Stefan van der Walt
Hi David On Thu, Jan 24, 2008 at 01:18:45PM -0700, David Bolme wrote: > A am having some trouble when pickling numpy arrays. Basically I use one > python script to create the array and then pickle it. When I load the pickled > array using a different python script it appears to load fine. When

Re: [Numpy-discussion] [ANN] numscons 0.3.0 release

2008-01-24 Thread David Cournapeau
Stefan van der Walt wrote: > Hi David > > On Thu, Jan 24, 2008 at 12:34:56AM +0900, David Cournapeau wrote: >> I've just released the 0.3.0 release of numscons, an alternative >> build system for numpy. The tarballs are available on launchpad. >> >> https://launchpad.net/numpy.scons.support/0.

Re: [Numpy-discussion] [ANN] numscons 0.3.0 release

2008-01-24 Thread David Cournapeau
Matthew Brett wrote: > Hi David, > > Thanks again for doing this. I've been playing with the compilation - > should I email you direct with questions, to the lists? I don't think it would be inappropriate to use the current lists for that. > > Basically, I'm trying to understand the library discov

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Charles R Harris
On Jan 24, 2008 1:53 PM, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > Hi Robert > > On Thu, Jan 24, 2008 at 01:15:13PM -0600, Robert Kern wrote: > > >> 5. Is the {'hi', 'ho'} syntax used when a parameter can only > assume a > > >> limited number of values? In Python {} is a dictiona

[Numpy-discussion] Numpy Example List with Doc updates

2008-01-24 Thread Filip Wasilewski
Hi all, Just a small note. I've updated the `Numpy Example List With Doc`[1] that is linked from the main doc index. Because I'm not always in the loop and the page likes to get out of sync with the base `Numpy Example List`[2] and NumPy, I've posted some instructions[3] that you might find useful

Re: [Numpy-discussion] numpy.ma.compress

2008-01-24 Thread Pierre GM
On Thursday 24 January 2008 15:58:14 Stefan van der Walt wrote: > How about masking the output where the condition is masked? > I.e. keep where condition is True, remove where condition is False and > mask where condition is masked. Won't systematically do, check one of the examples I gave in a p

Re: [Numpy-discussion] numpy.ma.compress

2008-01-24 Thread Stefan van der Walt
Hi Pierre On Thu, Jan 24, 2008 at 04:58:04AM -0500, Pierre GM wrote: > On Thursday 24 January 2008 04:02:52 Stefan van der Walt wrote: > > I'm not 100% sure about the new behaviour -- compress now removes > > masked elements, instead of ignoring them. Whereas a person would > > have been able to

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Stefan van der Walt
Hi Robert On Thu, Jan 24, 2008 at 01:15:13PM -0600, Robert Kern wrote: > >> 5. Is the {'hi', 'ho'} syntax used when a parameter can only assume a > >> limited number of values? In Python {} is a dictionary, so why not > >> use ('hi','ho') instead? > >> > >> Either would be fine. I

[Numpy-discussion] segfault problem with numpy and pickle

2008-01-24 Thread David Bolme
A am having some trouble when pickling numpy arrays. Basically I use one python script to create the array and then pickle it. When I load the pickled array using a different python script it appears to load fine. When I try to perform a matrix multiply on the array with a vector (using

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Robert Kern
Stefan van der Walt wrote: > Hi Charles > > On Wed, Jan 23, 2008 at 09:34:44AM -0700, Charles R Harris wrote: >> 2. How do we specify default values? >> >> I like to put them first in the list: {-1, integer} > > When exactly is this list used? That should be made clear in the > standard as w

[Numpy-discussion] numpy.concatenate doesn't check axis for 1D case. Bug or feature?

2008-01-24 Thread Stuart Brorson
As the subject says, numpy.concatenate doesn't seem to obey -- or even check -- the axis flag when concatenating 1D arrays: ---- In [30]: A = numpy.array([1, 2, 3, 4]) In [31]: D = numpy.array([6, 7, 8, 9]) In [32]: numpy.concatenate((A, D)) Out[32]: arra

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Matthew Brett
Also, > Perhaps we could have that discussion on the IRC channel on Friday at > some specified time? I suppose it's possible to hack up some processor of the form: doc_me('my_file.py') that can introspect things like argument lists, add boilerplate and process the resulting text according to th

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Matthew Brett
Hi, > When would the function signature be missing? In C functions we copy > the signature into the docstring. I am concerned about duplicating > information that may change. I guess that would be def my_func(*args, **kwargs): although, if you're going to document the parameters in detail for

Re: [Numpy-discussion] numpy.ma.compress

2008-01-24 Thread Pierre GM
On Thursday 24 January 2008 04:02:52 Stefan van der Walt wrote: > I'm not 100% sure about the new behaviour -- compress now removes > masked elements, instead of ignoring them. Whereas a person would > have been able to do > compress(x,condition).compressed() > before, the mask information is now

Re: [Numpy-discussion] [ANN] numscons 0.3.0 release

2008-01-24 Thread Stefan van der Walt
Hi David On Thu, Jan 24, 2008 at 12:34:56AM +0900, David Cournapeau wrote: > I've just released the 0.3.0 release of numscons, an alternative > build system for numpy. The tarballs are available on launchpad. > > https://launchpad.net/numpy.scons.support/0.3/0.3.0 > > To use it, you need to

Re: [Numpy-discussion] Docstring standard: how to specify variable types

2008-01-24 Thread Stefan van der Walt
Hi Charles On Wed, Jan 23, 2008 at 09:34:44AM -0700, Charles R Harris wrote: > 2. How do we specify default values? > > I like to put them first in the list: {-1, integer} When exactly is this list used? That should be made clear in the standard as well. > 3. Why do we need the "option

Re: [Numpy-discussion] numpy.ma.compress

2008-01-24 Thread Stefan van der Walt
Hi Pierre On Wed, Jan 23, 2008 at 08:45:26PM -0500, Pierre GM wrote: > All, > I just committed a fix on the SVN. Now, the axis keyword should be recognized. > Sorry for the delay. I'm not 100% sure about the new behaviour -- compress now removes masked elements, instead of ignoring them. Whereas