[Numpy-discussion] histogram gives meaningless results with non-finite range

2015-11-03 Thread Luke Zoltan Kelley
This came up in [a matplotlib issue](https://github.com/matplotlib/matplotlib/issues/5221): >>> np.histogram(np.arange(10), range=(0.0, np.inf)) (array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), array([ nan, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf])) >>> np.histogram(np.arange(10), ran

Re: [Numpy-discussion] [SciPy-Dev] Setting up a dev environment with conda

2015-10-18 Thread Luke Zoltan Kelley
I tried cleaning the git dir, and trying again. It still didn't work giving me the report: == ERROR: test_scripts.test_f2py -- Traceback (most recent call last)

Re: [Numpy-discussion] [SciPy-Dev] Setting up a dev environment with conda

2015-10-18 Thread Luke Zoltan Kelley
Thanks Yu, There was nothing in my PYTHONPATH at first, and adding my numpy directory ('/Users/lzkelley/Programs/public/numpy') didn't help (same error). In both cases, adding 'print(np)' yields: > On Oct 18, 2015, at 7:22 PM, Feng Yu wrote: > > Hi Luke

Re: [Numpy-discussion] [SciPy-Dev] Setting up a dev environment with conda

2015-10-18 Thread Luke Zoltan Kelley
Thanks for the help Nathaniel --- but building via `./runtests.py` is failing in the same way. Hopefully Numpy-discussion can help me out. I'm able to build using `python setup.py build_ext --inplace` but both trying to run `python setup.py install` or `./runtests.py` leads to the following er

Re: [Numpy-discussion] Fast sizes for FFT

2014-12-24 Thread Luke Pfister
On Wed, Dec 24, 2014 at 7:56 AM, Sturla Molden wrote: > On 24/12/14 14:34, Sturla Molden wrote: > > I would rather have SciPy implement this with the overlap-and-add method > > rather than padding the FFT. Overlap-and-add is more memory efficient > > for large n: > > (eh, the list should be) > >

[Numpy-discussion] Extract groups of/individual bit values from UInt16 array [SEC=UNCLASSIFIED]

2010-10-12 Thread Pinner, Luke
0=No 1=Yes Some typical values are: arr=numpy.array([51199,37013,36885,36889,34841,2062,34837,2061,35033,349 61,2185,37013,36885,2185,4109,4233], dtype=numpy.uint16) How would I extract groups of/individual bit values from such an array? Regards Luke Pinner

Re: [Numpy-discussion] saving masked array to a text file

2010-09-06 Thread Pinner, Luke
How about the masked aray filled method? eg numpy.savetxt(somefilename, somemaskedarray.filled(somevalue)) Luke -Original Message- From: Guillaume Chérel Sent: Monday, 6 September 2010 10:36 PM To: Discussion of Numerical Python Subject: [Numpy-discussion] saving masked array to a text

Re: [Numpy-discussion] Replacing values based on index

2010-08-11 Thread Pinner, Luke
Simple as that... Thanks! -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Geordie McBain Convert days to np.array, then you can index it with your indexmin: days = [10, 20, 31, 41, 51, 59, 69, 79, 90, 100] mydays

[Numpy-discussion] Replacing values based on index

2010-08-11 Thread Pinner, Luke
What I am currently doing is below, #which is _rather_ slow on large arrays #as I'm calling np.where len(days) times daymin=np.zeros(indexmin.shape).astype(np.int) for i,d in enumerate(days): daymin[np.where(indexmin==i)]=d Any better suggestions? Regards Luke Pinner -- If you have

Re: [Numpy-discussion] SciPy Journal

2007-06-07 Thread Luke
/ ideas discussed, or simply the presentation and discussion of the algorithms/ideas themselves? ~Luke On May 31, 10:34 am, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: > >Anne Archibald wrote: > > >>I implemented the Kuiper statistic and would be

[Numpy-discussion] Weird numpy.arange behavoir

2007-06-06 Thread Luke
that if instead of ceil, round was used, then it eliminated my problem, but I don't know if this would have other undesirable effects in other situations. I guess I could use range, but it is just a bit more tedious to code. Thanks, ~Luke ___ Numpy-