[Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-17 Thread Artur Bercik
Dear Python and Numpy Users: My data are in the form of '32-bit unsigned integer' as follows: myData = np.array([1073741824, 1073741877, 1073742657, 1073742709, 1073742723, 1073755137, 1073755189,1073755969],dtype=np.int32) I want to get the index of my data where the following occurs: Bit No.

Re: [Numpy-discussion] Add an axis argument to generalized ufuncs?

2014-10-17 Thread Charles R Harris
On Fri, Oct 17, 2014 at 10:56 PM, Stephan Hoyer wrote: > Yesterday I created a GitHub issue proposing adding an axis argument to > numpy's gufuncs: > https://github.com/numpy/numpy/issues/5197 > > I was told I should repost this on the mailing list, so here's the recap: > > I would like to write

[Numpy-discussion] Add an axis argument to generalized ufuncs?

2014-10-17 Thread Stephan Hoyer
Yesterday I created a GitHub issue proposing adding an axis argument to numpy's gufuncs: https://github.com/numpy/numpy/issues/5197 I was told I should repost this on the mailing list, so here's the recap: I would like to write generalized ufuncs (probably using numba), to create fast functions s

Re: [Numpy-discussion] Changed behavior of np.gradient

2014-10-17 Thread Nathaniel Smith
On 17 Oct 2014 02:38, "Benjamin Root" wrote: > > That isn't what I meant. Higher order doesn't "necessarily" mean more accurate. The results simply have different properties. The user needs to choose the differentiation order that they need. One interesting effect in data assimilation/modeling is

Re: [Numpy-discussion] Changed behavior of np.gradient

2014-10-17 Thread Benjamin Root
I see this as a regression. We don't keep regressions around for backwards compatibility, we fix them. Ben On Thu, Oct 16, 2014 at 10:25 PM, Matthew Brett wrote: > Hi, > > On Thu, Oct 16, 2014 at 6:38 PM, Benjamin Root wrote: > > That isn't what I meant. Higher order doesn't "necessarily" mean

Re: [Numpy-discussion] Request for enhancement to numpy.random.shuffle

2014-10-17 Thread josef.pktd
On Thu, Oct 16, 2014 at 10:50 PM, Nathaniel Smith wrote: > On Fri, Oct 17, 2014 at 2:35 AM, wrote: >> On Thu, Oct 16, 2014 at 3:39 PM, Nathaniel Smith wrote: >>> On Thu, Oct 16, 2014 at 6:30 PM, Warren Weckesser >>> wrote: On Thu, Oct 16, 2014 at 12:40 PM, Nathaniel Smith wrote

Re: [Numpy-discussion] Instaling numpy without root access

2014-10-17 Thread Ignat Harczuk
Have you considered virtual environments? http://docs.python-guide.org/en/latest/dev/virtualenvs/ Inside of each environment you can build a local python version and packages with different versions through pip. Maybe not exactly what you need help with but it is a good tool to have so that you