Re: [Numpy-discussion] Indexing with floats

2016-06-10 Thread Fabien
On 06/10/2016 01:48 PM, Robert Kern wrote: https://mail.scipy.org/pipermail/numpy-discussion/2012-December/064705.html https://github.com/numpy/numpy/issues/2810 https://github.com/numpy/numpy/pull/2891 https://github.com/numpy/numpy/pull/3243

[Numpy-discussion] Indexing with floats

2016-06-10 Thread Fabien
g docpage (http://docs.scipy.org/doc/numpy-1.11.0/user/basics.indexing.html) could be useful also. Thanks a lot! Fabien ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy helper function for __getitem__?

2015-08-25 Thread Fabien
On 08/24/2015 10:23 AM, Sebastian Berg wrote: Fabien, just to make sure you are aware. If you are overriding `__getitem__`, you should also implement `__setitem__`. NumPy does some magic if you do not. That will seem to make `__setitem__` work fine, but breaks down if you have advanced

[Numpy-discussion] Numpy helper function for __getitem__?

2015-08-23 Thread Fabien
(item, ndimensions=4) # Ok now item is guaranteed to be of len 4 item[2] = slice() # Continue etc. Is there such a function in numpy? I hope I have been clear enough... Thanks a lot! Fabien ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Numpy helper function for __getitem__?

2015-08-23 Thread Fabien
On 08/23/2015 08:08 PM, Stephan Hoyer wrote: I don't think NumPy has a function like this (at least, not exposed to Python), but I wrote one for xray, expanded_indexer, that you are welcome to borrow: Hi Stephan, that's perfect, thanks! Fabien

Re: [Numpy-discussion] ANN: Bokeh 0.6.1 release

2014-12-01 Thread Fabien
/highcharts/examples/area-stacked/index_py.htm thanks, Fabien ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ANN: Bokeh 0.6.1 release

2014-12-01 Thread Fabien
with a python model running on a webserver and making plots. There's a bunch of tools out there, it's hard to get things sorted out. Fabien ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] numpy.mean still broken for largefloat32arrays

2014-07-28 Thread Fabien
in numpy than in IDL? Fabien ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.mean still broken for large float32 arrays

2014-07-24 Thread Fabien
mean(fltarr(1L, 1L)+1) 0.67108864 I can't really explain why there are differences between the two languages (IDL uses 32-bit, single-precision, floating-point numbers) Fabien ___ NumPy-Discussion mailing list NumPy-Discussion