Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 9:46 PM, wrote: > On Mon, Dec 10, 2012 at 8:54 PM, wrote: >> On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris >> wrote: >>> >>> On Mon, Dec 10, 2012 at 5:39 PM, wrote: >>> np.__version__ '1.6.2' >>> aa array([1970-01-13 96:00:00, 1970-01-13 12

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 8:54 PM, wrote: > On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris > wrote: >> >> On Mon, Dec 10, 2012 at 5:39 PM, wrote: >>> >>> >>> np.__version__ >>> '1.6.2' >>> >>> aa >>> array([1970-01-13 96:00:00, 1970-01-13 120:00:00, 1970-01-13 144:00:00, >>>1970-01-13

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris wrote: > > On Mon, Dec 10, 2012 at 5:39 PM, wrote: >> >> >>> np.__version__ >> '1.6.2' >> >>> aa >> array([1970-01-13 96:00:00, 1970-01-13 120:00:00, 1970-01-13 144:00:00, >>1970-01-13 168:00:00, 1970-01-13 192:00:00], dtype=datetime64[ns]

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread Charles R Harris
On Mon, Dec 10, 2012 at 5:39 PM, wrote: > >>> np.__version__ > '1.6.2' > >>> aa > array([1970-01-13 96:00:00, 1970-01-13 120:00:00, 1970-01-13 144:00:00, >1970-01-13 168:00:00, 1970-01-13 192:00:00], dtype=datetime64[ns]) > >>> np.dot(aa, [1]) > > > Hmm, I can't even get that array using

Re: [Numpy-discussion] np.dstack vs np.concatenate?

2012-12-10 Thread Bradley M. Froehle
The source for np.dstack would point the way towards a simpler implementation: array = np.concatenate(map(np.atleast_3d, (arr1, arr2, arr3, arr4, arr5, arr6)), axis=2) array_list_old = [arr1, arr2, arr3, arr4, arr5, arr6] > > array_list = [arr[...,np.newaxis] for arr in array_list_old] > array =

Re: [Numpy-discussion] ImportError: libatlas.so.3: cannot open shared object file

2012-12-10 Thread Olivier Delalleau
2012/12/10 Allan Kamau > I did add the paths to LD_LIBRARY_PATH as advised (see below), then > "python setup.py clean;python setup.py build;python setup.py install;" but > the same error persists. > > export LAPACK=/usr/lib/lapack/liblapack.so;export > ATLAS=/usr/lib/atlas-base/libatlas.so; > ex

Re: [Numpy-discussion] ImportError: libatlas.so.3: cannot open shared object file

2012-12-10 Thread Allan Kamau
I did add the paths to LD_LIBRARY_PATH as advised (see below), then "python setup.py clean;python setup.py build;python setup.py install;" but the same error persists. export LAPACK=/usr/lib/lapack/liblapack.so;export ATLAS=/usr/lib/atlas-base/libatlas.so; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:

Re: [Numpy-discussion] ImportError: libatlas.so.3: cannot open shared object file

2012-12-10 Thread Alexander Eberspächer
On Mon, 10 Dec 2012 13:57:04 +0300 Allan Kamau wrote: > I have built and installed numpy on Debian from source successfully as > follows. [...] > ImportError: libatlas.so.3: cannot open shared object file: No such > file or directory Are the paths to ATLAS in your $LD_LIBRARY_PATH? If not, try a

[Numpy-discussion] ImportError: libatlas.so.3: cannot open shared object file

2012-12-10 Thread Allan Kamau
I have built and installed numpy on Debian from source successfully as follows. export LAPACK=/usr/lib/lapack/liblapack.so;export ATLAS=/usr/lib/atlas-base/libatlas.so; python setup.py build; python setup.py install; Then I change directory from the numpy sources directory. Then I give the comman