Re: [Numpy-discussion] cython/swigpyrex examples and docs

2010-07-31 Thread Ralf Gommers
On Sat, Jul 24, 2010 at 6:38 PM, Pauli Virtanen p...@iki.fi wrote: Sat, 24 Jul 2010 18:22:33 +0800, Ralf Gommers wrote: There is a bug report asking for the example files under doc/cython, doc/swig etc. to be included in the released binaries. This thread,

Re: [Numpy-discussion] str == int puzzlement

2010-07-31 Thread Friedrich Romstedt
2010/7/29 Keith Goodman kwgood...@gmail.com: On Wed, Jul 28, 2010 at 6:42 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Please forgive me if this is obvious, but this surprised me: In [15]: x = np.array(['a', 'b']) In [16]: x == 'a'  # this was what I expected Out[16]: array([

Re: [Numpy-discussion] test errors in the trunk

2010-07-31 Thread Ralf Gommers
On Sat, Jul 31, 2010 at 4:55 AM, Robert Kern robert.k...@gmail.com wrote: On Fri, Jul 30, 2010 at 13:22, Darren Dale dsdal...@gmail.com wrote: I just upgraded my svn checkout and did a fresh install. When I try to run the test suite, I get a ton of errors: np.test() Running unit

Re: [Numpy-discussion] test errors in the trunk

2010-07-31 Thread Darren Dale
On Sat, Jul 31, 2010 at 7:22 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sat, Jul 31, 2010 at 4:55 AM, Robert Kern robert.k...@gmail.com wrote: On Fri, Jul 30, 2010 at 13:22, Darren Dale dsdal...@gmail.com wrote: I just upgraded my svn checkout and did a fresh install. When I try

Re: [Numpy-discussion] Unable to get most basic numpy array creation from C++ working.

2010-07-31 Thread rif
On Fri, Jul 30, 2010 at 10:17 PM, Kevin Jacobs jac...@bioinformed.com bioinfor...@gmail.com wrote: On Fri, Jul 30, 2010 at 10:08 PM, rif r...@google.com wrote: Hi numpy-discuss . I've distilled my problem down to a very simple program that segfaults. I'm sure I'm doing something silly, but

Re: [Numpy-discussion] cython/swigpyrex examples and docs

2010-07-31 Thread Bill Spotz
On Jul 31, 2010, at 12:32 AM, Ralf Gommers wrote: How about removing the swig html and pdf docs, and then including the swig/pyrex/cython dirs as-is? In setup.py: Note that the html and pdf documents are created from the txt file using the docutils utilities rts2html.py and rst2latex.py. **

Re: [Numpy-discussion] str == int puzzlement

2010-07-31 Thread Matthew Brett
Hi, Yeah, it's just that numpy knows that it cannot compare pears with apples: a = numpy.asarray(['a', 'b']) a.__eq__(1) NotImplemented Thank you - that's very helpful and clear. Maybe it would be better to raise a ValueError, which is not caught by the evaluation mechanism, to prevent

Re: [Numpy-discussion] additions to random: innovative names vs. algorithm specification

2010-07-31 Thread Sturla Molden
On Thu, Jul 29, 2010 at 19:26, Sturla Molden stu...@molden.no wrote: http://groups.google.com/group/sci.math/msg/dc9ad178113a30fd It looks like it has a little bit more peer review to get through, but thanks for the pointer! That's probably the best motivation I've seen to do the

Re: [Numpy-discussion] np.asfortranarray: unnecessary copying?

2010-07-31 Thread Kurt Smith
On Fri, Jul 30, 2010 at 1:33 PM, Anne Archibald aarch...@physics.mcgill.ca wrote: This seems to me to be a bug, or rather, two bugs. 1D arrays are automatically Fortran-ordered, so isfortran should return True for them (incidentally, the documentation should be edited to indicate that the data

Re: [Numpy-discussion] cython/swigpyrex examples and docs

2010-07-31 Thread Ralf Gommers
On Sun, Aug 1, 2010 at 12:35 AM, Bill Spotz wfsp...@sandia.gov wrote: On Jul 31, 2010, at 12:32 AM, Ralf Gommers wrote: How about removing the swig html and pdf docs, and then including the swig/pyrex/cython dirs as-is? In setup.py: Note that the html and pdf documents are created from the