Re: [Numpy-discussion] Can't seem to use np.insert() or np.append() for structured arrays

2014-08-29 Thread Charles R Harris
On Fri, Aug 29, 2014 at 8:10 PM, Benjamin Root wrote: > Consider the following: > > a = np.array([(1, 'a'), (2, 'b'), (3, 'c')], dtype=[('foo', 'i'), ('bar', > 'a1')]) > b = np.append(a, (4, 'd')) > Traceback (most recent call last): > File "", line 1, in > File > "/home/ben/miniconda/lib/py

[Numpy-discussion] Can't seem to use np.insert() or np.append() for structured arrays

2014-08-29 Thread Benjamin Root
Consider the following: a = np.array([(1, 'a'), (2, 'b'), (3, 'c')], dtype=[('foo', 'i'), ('bar', 'a1')]) b = np.append(a, (4, 'd')) Traceback (most recent call last): File "", line 1, in File "/home/ben/miniconda/lib/python2.7/site-packages/numpy/lib/function_base.py", line 3555, in append

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Orion Poplawski
On 08/27/2014 11:00 PM, Charles R Harris wrote: > > > > On Wed, Aug 27, 2014 at 3:52 PM, Orion Poplawski > wrote: > > On 08/27/2014 11:07 AM, Julian Taylor wrote: > > Hello, > > > > Almost punctually for EuroScipy we have finally managed to release th

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Benjamin Root
It is generally a good idea when switching between releases to execute "git clean -fxd" prior to rebuilding. Admittedly, I don't know how cleaning out that directory in .local could have impacted things. Go figure. Cheers! Ben Root On Fri, Aug 29, 2014 at 8:50 AM, Neal Becker wrote: > OK, it's

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Neal Becker
OK, it's fixed by doing: rm -rf ~/.local/lib/python2.7/site-packages/numpy* python setup.py install --user I guess something was not cleaned out from previous packages ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/m

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Neal Becker
doesn't seem to work on fedora 20 x86_64 After python setup.py install --user, import fails: python Python 2.7.5 (default, Jun 25 2014, 10:19:55) [GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (mo

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Sebastian Berg
On Fr, 2014-08-29 at 08:31 -0400, Neal Becker wrote: > How do I run tests? > > python setup.py --help-commands claims 'test' is a command, but doesn't seem > to > work: > There is a runtests script you can use, it should do the building, too. Or just install and then run `np.test()` (or run no

Re: [Numpy-discussion] ANN: NumPy 1.9.0 release candidate 1 available

2014-08-29 Thread Neal Becker
How do I run tests? python setup.py --help-commands claims 'test' is a command, but doesn't seem to work: python setup.py test Running from numpy source directory. /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) usage: setu

Re: [Numpy-discussion] PR added: frozen dimensions in gufunc signatures

2014-08-29 Thread Jaime Fernández del Río
On Thu, Aug 28, 2014 at 5:40 PM, Nathaniel Smith wrote: > Some thoughts: > > But, for your computed dimension idea I'm wondering if what we should > do instead is just let a gufunc provide a C callback that looks at the > input array dimensions and explicitly says somehow which dimensions it > wa