Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Pauli Virtanen
15.08.2015, 01:44, Chris Barker kirjoitti: [clip] > numpy doesn't use namespace packages, so develop mode works there. The develop mode is mainly useful with a virtualenv. Otherwise, you install work-in-progress development version into your ~/.local which then breaks everything else. In addition

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Chris Barker
On Fri, Aug 14, 2015 at 10:15 AM, Stefan van der Walt wrote: > Perhaps mpl_toolkits should think of > becoming mpl_3d, mpl_basemaps, etc.? > namespace packages are a fine idea, but the implementation(s) are just one big kludge... I think so, but we're getting off-topic here. numpy doesn't us

Re: [Numpy-discussion] Problems using add_npy_pkg_config

2015-08-14 Thread Christian Engwer
Dear Ralf, > I stared at it for a while, and can't figure it out despite you following > the example in the add_npy_pkg_config docstring pretty much to the letter. > When you see that the error is generated in a function that starts with ``# > XXX: another ugly workaround to circumvent distutils b

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Stefan van der Walt
On 2015-08-14 10:08:11, Benjamin Root wrote: > I should also note that there is currently an open issue with > "pip install -e" and namespace packages. This has been reported > to matplotlib with regards to mpl_toolkits. Essentially, if you > have namespace packages, it doesn't get installed co

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Jens Nielsen
I think it's clear that develop/-e does not work well together with namespace packages. As noted on the relevant matplotlib issue https://github.com/matplotlib/matplotlib/issues/4907 I think the issue with namespace packages is essentially this well known one https://github.com/pypa/pip/issues/3 wh

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Chris Barker
On Fri, Aug 14, 2015 at 10:08 AM, Benjamin Root wrote: > I used to be a huge advocate for the "develop" mode, but not anymore. I > have run into way too many Heisenbugs that would clear up if I nuked my > source tree and re-clone. > well, you do need to remember to clean out once in a while, whe

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Nathaniel Smith
On Aug 14, 2015 09:16, "Chris Barker" wrote: > > On Thu, Aug 13, 2015 at 11:25 AM, Stefan van der Walt < stef...@berkeley.edu> wrote: >> >> >(for >> > example "python setup.py develop", although suggested by >> > setup.py itself, claims that "develop" is not a command). > > > develop is a command

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Allan Haldane
On 08/14/2015 01:52 PM, Pauli Virtanen wrote: > 14.08.2015, 20:45, Allan Haldane kirjoitti: > [clip] >> Related to this, does anyone know how to debug numpy in gdb with proper >> symbols/source lines, like I can do with other C extensions? I've tried >> modifying numpy distutils to try to add the r

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Pauli Virtanen
14.08.2015, 20:45, Allan Haldane kirjoitti: [clip] > Related to this, does anyone know how to debug numpy in gdb with proper > symbols/source lines, like I can do with other C extensions? I've tried > modifying numpy distutils to try to add the right compiler/linker flags, > without success. runte

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Allan Haldane
On 08/13/2015 11:52 AM, Anne Archibald wrote: > Hi, > > What is a sensible way to work on (modify, compile, and test) numpy? > > There is documentation about "contributing to numpy" at: > http://docs.scipy.org/doc/numpy-dev/dev/index.html > and: > http://docs.scipy.org/doc/numpy-dev/dev/gitwash/

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Benjamin Root
I used to be a huge advocate for the "develop" mode, but not anymore. I have run into way too many Heisenbugs that would clear up if I nuked my source tree and re-clone. I should also note that there is currently an open issue with "pip install -e" and namespace packages. This has been reported to

Re: [Numpy-discussion] Development workflow (not git tutorial)

2015-08-14 Thread Chris Barker
On Thu, Aug 13, 2015 at 11:25 AM, Stefan van der Walt wrote: > >(for > > example "python setup.py develop", although suggested by > > setup.py itself, claims that "develop" is not a command). develop is a command provided by setuptools, not distutils itself. I find it absolutely invaluable --

Re: [Numpy-discussion] Changes to np.digitize since NumPy 1.9?

2015-08-14 Thread Marten van Kerkwijk
For what it's worth, also from my astropy perspective I think hat any index array should be a base ndarray! -- Marten On Fri, Aug 14, 2015 at 7:11 AM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > On Thu, Aug 13, 2015 at 9:57 AM, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote:

Re: [Numpy-discussion] Help in understanding

2015-08-14 Thread Aditya Krishnamurthy
names == 'Bob' returns a boolean array [True, False, False, True, False, False, False], and data[boolean_array] returns all those elements of data where the boolean array is True. data is a list of 7 lists, so the two lists corresponding to True values are returned. Read the Numpy basics and Advan