Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-02 Thread Dag Sverre Seljebotn
On 12/02/2010 08:17 AM, Robert Bradshaw wrote: On Wed, Dec 1, 2010 at 6:09 PM, John Salvatier jsalv...@u.washington.edu wrote: On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodmankwgood...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:53 PM, Davidda...@silveregg.co.jp wrote: On

Re: [Numpy-discussion] broadcasting with numpy.interp

2010-12-02 Thread Friedrich Romstedt
2010/12/1 greg whittier gre...@gmail.com: On Wed, Nov 24, 2010 at 3:16 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: I assume you just need *some* interpolation, not that specific one? In that case, I'd suggest the following: 1)  Use a 2d interpolation, taking into account all

[Numpy-discussion] Threshold

2010-12-02 Thread totonixs...@gmail.com
Hi all, I' m developing a medical software named InVesalius [1], it is a free software. It uses numpy arrays to store the medical images (CT and MRI) and the mask, the mask is used to mark the region of interest and to create 3D surfaces. Those array generally have 512x512 elements. The mask is

Re: [Numpy-discussion] Threshold

2010-12-02 Thread Zachary Pincus
mask = numpy.zeros(medical_image.shape, dtype=uint16) mask[ numpy.logical_and( medical_image = lower, medical_image = upper)] = 255 Where lower and upper are the threshold bounds. Here I' m marking the array positions where medical_image is between the threshold bounds with 255, where

Re: [Numpy-discussion] Threshold

2010-12-02 Thread totonixs...@gmail.com
On Thu, Dec 2, 2010 at 11:14 AM, Zachary Pincus zachary.pin...@yale.edu wrote: mask = numpy.zeros(medical_image.shape, dtype=uint16) mask[ numpy.logical_and( medical_image = lower, medical_image = upper)] = 255 Where lower and upper are the threshold bounds. Here I' m marking the array

Re: [Numpy-discussion] printoption to allow hexified floats?

2010-12-02 Thread Ken Basye
Thanks for the replies. Robert is right; many numerical operations, particularly complex ones, generate different values across platforms, and we deal with these by storing the values from some platform as a reference and using allclose(), which requires extra work. But many basic operations

[Numpy-discussion] Float16 and PEP 3118

2010-12-02 Thread Charles R Harris
Hi Folks, Now that the float16 type is in I was wondering if we should do anything to support it in the PEP 3118 buffer interface. This would probably affect the Cython folks as well as the people working on fixing up the structure module http://bugs.python.org/issue3132for Python 3.x. There is a

Re: [Numpy-discussion] printoption to allow hexified floats?

2010-12-02 Thread Benjamin Root
On Thu, Dec 2, 2010 at 11:17 AM, Ken Basye kbas...@jhu.edu wrote: Thanks for the replies. Robert is right; many numerical operations, particularly complex ones, generate different values across platforms, and we deal with these by storing the values from some platform as a reference and

Re: [Numpy-discussion] Float16 and PEP 3118

2010-12-02 Thread Pauli Virtanen
Thu, 02 Dec 2010 10:20:27 -0700, Charles R Harris wrote: Now that the float16 type is in I was wondering if we should do anything to support it in the PEP 3118 buffer interface. This would probably affect the Cython folks as well as the people working on fixing up the structure module

[Numpy-discussion] Pushing changes to numpy git repo problem

2010-12-02 Thread Pearu Peterson
Hi, I have followed Development workflow instructions in http://docs.scipy.org/doc/numpy/dev/gitwash/ but I am having a problem with the last step: $ git push upstream ticket1679:master fatal: remote error: You can't push to git://github.com/numpy/numpy.git Use

Re: [Numpy-discussion] Pushing changes to numpy git repo problem

2010-12-02 Thread Charles R Harris
On Thu, Dec 2, 2010 at 1:52 PM, Pearu Peterson pearu.peter...@gmail.comwrote: Hi, I have followed Development workflow instructions in http://docs.scipy.org/doc/numpy/dev/gitwash/ but I am having a problem with the last step: $ git push upstream ticket1679:master fatal: remote error:

Re: [Numpy-discussion] Pushing changes to numpy git repo problem

2010-12-02 Thread Pearu Peterson
Thanks! Pearu On Thu, Dec 2, 2010 at 11:08 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Dec 2, 2010 at 1:52 PM, Pearu Peterson pearu.peter...@gmail.com wrote: Hi, I have followed Development workflow instructions in  http://docs.scipy.org/doc/numpy/dev/gitwash/ but I

Re: [Numpy-discussion] numpy.test() Program received signal SIGABRT, Aborted.

2010-12-02 Thread Charles R Harris
On Fri, Dec 3, 2010 at 12:29 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I have installed the latest version of numpy. numpy.__version__ '2.0.0.dev-6aacc2d' I don't see that here or on the buildbots. There was a problem with segfaults that was fixed in commit

Re: [Numpy-discussion] numpy.test() Program received signal SIGABRT, Aborted.

2010-12-02 Thread Nils Wagner
On Fri, 3 Dec 2010 00:42:16 -0700 Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Dec 3, 2010 at 12:29 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I have installed the latest version of numpy. numpy.__version__ '2.0.0.dev-6aacc2d' I don't see that here or

Re: [Numpy-discussion] numpy.test() Program received signal SIGABRT, Aborted.

2010-12-02 Thread Nils Wagner
On Fri, 03 Dec 2010 08:47:32 +0100 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Fri, 3 Dec 2010 00:42:16 -0700 Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Dec 3, 2010 at 12:29 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I have installed the latest