[Numpy-discussion] [ANN] new release 0.38 of OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator

2012-03-15 Thread Dmitrey
Hi, I'm glad to inform you about new release 0.38 (2012-March-15): OpenOpt: interalg can handle discrete variables (see MINLP for examples) interalg can handle multiobjective problems (MOP) interalg can handle problems with parameters fixedVars/freeVars Many interalg improvements and some

Re: [Numpy-discussion] addition, multiplication of a polynomial and np.{float, int}

2012-03-15 Thread Pierre Haessig
Le 09/03/2012 23:57, Ralf Gommers a écrit : The buildbot doesn't check the doc build. I've edited a few of the links. Thanks for checking ! I had not realized that simply using the `numpy.package` notation was enough to get a link to the package. Best, Pierre signature.asc Description:

Re: [Numpy-discussion] Followup on Python+MPI import performance

2012-03-15 Thread Asher Langton
On Mon, Mar 5, 2012 at 10:17 AM, Asher Langton lang...@gmail.com wrote: This is a followup to my post from January (http://mail.scipy.org/pipermail/numpy-discussion/2012-January/059801.html) and the panel discussion at PyData this weekend. As a few people have suggested, a better approach than

[Numpy-discussion] Question on numpy.ma.masked_values

2012-03-15 Thread Gökhan Sever
Hello, From the masked_values() documentation - http://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.masked_values.html I10 np.ma.masked_values(x, 1.5) O10 masked_array(data = [ 1. 1.1 2. 1.1 3. ], mask = False, fill_value = 1.5) I12 np.ma.masked_values(x,

Re: [Numpy-discussion] Question on numpy.ma.masked_values

2012-03-15 Thread Gökhan Sever
On Thu, Mar 15, 2012 at 12:56 PM, Gökhan Sever gokhanse...@gmail.comwrote: If not so, how can I return a set of False values if my masking condition is not met? Self-answer: I can force the mask to be filled with False's, however unsure if this is a safe operation. I50 x = np.array([1, 1.1,

Re: [Numpy-discussion] Question on numpy.ma.masked_values

2012-03-15 Thread Pierre GM
Ciao Gökhan, AFAIR, shrink is used only to force a collapse of a mask full of False, not to force the creation of such a mask. Now, it should work as you expected, meaning that it needs to be fixed. Could you open a ticket? And put me in copy, just in case. Anyhow: Your trick is a tad dangerous,

Re: [Numpy-discussion] Question on numpy.ma.masked_values

2012-03-15 Thread Gökhan Sever
On Thu, Mar 15, 2012 at 1:12 PM, Pierre GM pgmdevl...@gmail.com wrote: Ciao Gökhan, AFAIR, shrink is used only to force a collapse of a mask full of False, not to force the creation of such a mask. Now, it should work as you expected, meaning that it needs to be fixed. Could you open a

Re: [Numpy-discussion] Question on numpy.ma.masked_values

2012-03-15 Thread Gökhan Sever
Submitted the ticket at http://projects.scipy.org/numpy/ticket/2082 On Thu, Mar 15, 2012 at 1:24 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Thu, Mar 15, 2012 at 1:12 PM, Pierre GM pgmdevl...@gmail.com wrote: Ciao Gökhan, AFAIR, shrink is used only to force a collapse of a mask full

Re: [Numpy-discussion] draft enum NEP

2012-03-15 Thread Nathaniel Smith
On Wed, Mar 14, 2012 at 1:44 AM, Mark Wiebe mwwi...@gmail.com wrote: On Fri, Mar 9, 2012 at 8:55 AM, Bryan Van de Ven bry...@continuum.io wrote: Hi all, I have started working on a NEP for adding an enumerated type to NumPy. It is on my GitHub:    

[Numpy-discussion] Commit PR 229 breaks build

2012-03-15 Thread Charles R Harris
On my machines anyway. Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 numpy/core/setup_common.py:86: MismatchCAPIWarning: API mismatch detected, the C API version numbers have to be updated. Current C api version is 6, with checksum

Re: [Numpy-discussion] Casting rules changed in trunk?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 8, 2012 at 3:14 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Wed, Mar 7, 2012 at 4:08 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, I noticed a casting change running the test suite on our image reader, nibabel:

Re: [Numpy-discussion] Missing data again

2012-03-15 Thread Nathaniel Smith
Hi Chuck, I think I let my frustration get the better of me, and the message below is too confrontational. I apologize. I truly would like to understand where you're coming from on this, though, so I'll try to make this more productive. My summary of points that no-one has disagreed with yet is

Re: [Numpy-discussion] draft enum NEP

2012-03-15 Thread Benjamin Root
On Thursday, March 15, 2012, Nathaniel Smith n...@pobox.com wrote: On Wed, Mar 14, 2012 at 1:44 AM, Mark Wiebe mwwi...@gmail.com wrote: On Fri, Mar 9, 2012 at 8:55 AM, Bryan Van de Ven bry...@continuum.io wrote: Hi all, I have started working on a NEP for adding an enumerated type to NumPy.

Re: [Numpy-discussion] draft enum NEP

2012-03-15 Thread Stéfan van der Walt
On Thu, Mar 15, 2012 at 4:02 PM, Nathaniel Smith n...@pobox.com wrote: I'm not sure what it would even mean to treat this kind of data as flags, since you can't take the bitwise-or of two strings... This makes a more sense outside of ndarrays, where you would do something like: enum FLAG0 = 1,

[Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, Am I right in thinking that float96 on windows 32 bit is a float64 padded to 96 bits? If so, is it useful? Has anyone got a windows64 box to check float128 ? Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread David Cournapeau
On Thu, Mar 15, 2012 at 11:10 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, Am I right in thinking that float96 on windows 32 bit is a float64 padded to 96 bits? Yes If so, is it useful? Yes: this is what allows you to use dtype to parse complex binary files directly in numpy

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Charles R Harris
On Thu, Mar 15, 2012 at 10:17 PM, David Cournapeau courn...@gmail.comwrote: On Thu, Mar 15, 2012 at 11:10 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, Am I right in thinking that float96 on windows 32 bit is a float64 padded to 96 bits? Yes If so, is it useful? Yes:

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 9:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Mar 15, 2012 at 11:10 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Am I right in thinking that float96 on windows 32 bit is a float64 padded to 96 bits? Yes  If so, is it useful? Yes:

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 9:24 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Mar 15, 2012 at 10:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Mar 15, 2012 at 11:10 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Am I right in thinking that float96

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Val Kalatsky
I just happened to have an xp64 VM running: My version of numpy (1.6.1) does not have float128 (see more below what I get in ipython session). If you need to test something else please let me know. Val --- Enthought Python Distribution -- www.enthought.com Python 2.7.2 |EPD 7.2-2 (64-bit)|

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Benjamin Root
On Thursday, March 15, 2012, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Mar 15, 2012 at 10:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Mar 15, 2012 at 11:10 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Am I right in thinking that float96 on windows 32

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 9:33 PM, Val Kalatsky kalat...@gmail.com wrote: I just happened to have an xp64 VM running: My version of numpy (1.6.1) does not have float128 (see more below what I get in ipython session). If you need to test something else please let me know. Thanks a lot -

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Val Kalatsky
I does look like a joke. Here is print np.finfo(np.longdouble) In [2]: np.__version__ Out[2]: '1.6.1' In [3]: np.flo np.floatnp.float32 np.float_ np.floor np.float16 np.float64 np.floating np.floor_divide In [3]: print np.finfo(np.longdouble) Machine parameters

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Warren Weckesser
On Thu, Mar 15, 2012 at 11:41 PM, Val Kalatsky kalat...@gmail.com wrote: I does look like a joke. Here is print np.finfo(np.longdouble) In [2]: np.__version__ Out[2]: '1.6.1' In [3]: np.flo np.floatnp.float32 np.float_ np.floor np.float16 np.float64

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 9:41 PM, Val Kalatsky kalat...@gmail.com wrote: I does look like a joke. Here is print np.finfo(np.longdouble) In [2]: np.__version__ Out[2]: '1.6.1' In [3]: np.flo np.float        np.float32      np.float_       np.floor np.float16      np.float64      

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Ilan Schnell
I'm seeing the same thing on both (64 and 32-bit) Windows EPD test machines. I guess Windows does not support 128 bit floats. I did some tests a few weeks ago, and discovered that also on the Mac and Linux long long double is not really 128 bits. If I remember correctly it was 80 bits: 1 (sign) +

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 10:17 PM, Ilan Schnell ischn...@enthought.com wrote: I'm seeing the same thing on both (64 and 32-bit) Windows EPD test machines.  I guess Windows does not support 128 bit floats. Do you mean there is no float96 on windows 32 bit as I described at the beginning of

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Ilan Schnell
To be more precise. On both 32-bit and 64-bit Windows machines I don't see.float96 as well as np.float128 - Ilan On Fri, Mar 16, 2012 at 12:22 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Mar 15, 2012 at 10:17 PM, Ilan Schnell ischn...@enthought.com wrote: I'm seeing the

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-15 Thread Matthew Brett
Hi, On Thu, Mar 15, 2012 at 10:26 PM, Ilan Schnell ischn...@enthought.com wrote: To be more precise.  On both 32-bit and 64-bit Windows machines I don't see.float96 as well as np.float128 Do you have any idea why I am seeing float96 and you are not? I'm on XP with the current sourceforge