On Aug 12, 8:44 am, Robert Cimrman robert....@gmail.com wrote:
On Aug 12, 2:15 pm, Dominique dominiq...@gmail.com wrote:
Try the following code:
In : import numpy as nm
In : a = nm.float64( 1 )
In : a[...,nm.newaxis,nm.newaxis] Out: array([[ 1.]])
In : nm.__version__ Out: '1.2.0.dev5629'
if it does not work for you then it seems the code relies on a newer version of numpy than you have.
Indeed. The Numpy in ETS is quite outdated as well (1.0.4).
Yes, the tests are implemented in testsBasic.py, but this file just holds some common functionality - you should use tests/test_lcbc_3d.py and tests/test_lcbc_2d.py, Anyway, I think the errors will disappear after you upgrade your numpy.
I now upgraded to 1.2.0.dev5630 and all seems well. No failures.