Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Han Genuit
You're welcome. I do not have many expectations; only those you can expect from an open source project. ;-) On Sat, Sep 15, 2012 at 10:33 PM, Travis Oliphant wrote: > It's very nice to get your help.I hope I haven't inappropriately set > expectations :-) > > -Travis > > On Sep 15, 2012, at

Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Travis Oliphant
It's very nice to get your help.I hope I haven't inappropriately set expectations :-) -Travis On Sep 15, 2012, at 3:14 PM, Han Genuit wrote: > Yeah, that merge was fast. :-) > > Regards, > Han > ___ > NumPy-Discussion mailing list > NumPy-Discuss

Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Han Genuit
Yeah, that merge was fast. :-) Regards, Han ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Travis Oliphant
I was working on the same fix and so I saw your code was similar and merged it. It needs to be back-ported to 1.7.0 Thanks, -Travis On Sep 15, 2012, at 11:06 AM, Han Genuit wrote: > Okay, sent in a pull request: https://github.com/numpy/numpy/pull/443. >

Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Han Genuit
Okay, sent in a pull request: https://github.com/numpy/numpy/pull/443. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] easy way to change part of only unmasked elements value?

2012-09-15 Thread Chao YUE
but I think I personally prefer the reverse. I would expect when I do a[3:6]=1 the mask state would not change. then I want to change the "base", I would use a.base[3:6]=1 then the mask state would change also. By the way, I found b.data always be equal to b.base? cheers, Chao On Tue, Sep 11,

[Numpy-discussion] Change in ``round`` behavior for numpy scalars in python 3

2012-09-15 Thread Matthew Brett
Hi, I just noticed that Python 3 raises an error for 0 dimensional numpy arrays. Here's Python 2.6: In [14]: a = np.array(1.1) In [15]: round(a) Out[15]: 1.0 and Python 3.2: In [3]: a = np.array(1.1) In [4]: round(a) ---

Re: [Numpy-discussion] Change in behavior of np.concatenate for upcoming release

2012-09-15 Thread Matthew Brett
Hi, On Fri, Sep 14, 2012 at 11:25 PM, Han Genuit wrote: > I think there is something wrong with the implementation.. I would > expect each incoming array in PyArray_ConcatenateFlattenedArrays to be > flattened and the sizes of all of them added into a one-dimensional > shape. Now the shape is two

[Numpy-discussion] [ANN] OpenOpt Suite release 0.42

2012-09-15 Thread Dmitrey
Hi all, I'm glad to inform you about new OpenOpt Suite release 0.42 (2012-Sept-15). Main changes: * Some improvements for solver interalg, including handling of categorical variables * Some parameters for solver gsubg * Speedup objective function for de and pswarm on FuncDesigner models *