Re: [Numpy-discussion] Is this a bug in repr ?

2011-03-16 Thread Mark Sienkiewicz
>> In that case, would you agree that it is a bug for >> assert_array_almost_equal to use repr() to display the arrays, since it >> is printing identical values and saying they are different? Or is there >> also a reason to do that? >> > > It should probably use np.array_repr(x, precision=16

Re: [Numpy-discussion] Is this a bug in repr ?

2011-03-15 Thread Mark Sienkiewicz
Robert Kern wrote: > On Tue, Mar 15, 2011 at 12:39, Charles R Harris > wrote: > > >> Yes, I think it is a bug. IIRC, it also shows up for object arrays. >> > > It's extremely long-standing, documented, intentional behavior dating > back to Numeric. > > [~] > |1> import Numeric > > [~] > |2

[Numpy-discussion] Is this a bug in repr ?

2011-03-15 Thread Mark Sienkiewicz
The usual expectation is that (when possible) repr() returns a value that you can eval() to get the original data back. But, >>> from numpy import * >>> a = array( [ 16.5069863163822 ] ) >>> b = eval(repr(a)) >>> a-b array([ -3.6111e-09]) >>> import numpy.testing >>> numpy.testing

Re: [Numpy-discussion] numpy docs dependency problem in Ubuntu

2011-02-11 Thread Mark Sienkiewicz
>> We can't put python-matplotlib in main because of *its* dependencies. >> > > As a digression, I think the python-matplotlib dependencies could be > significantly reduced. For a number of use cases (this is one of them, > but there are others), you don't need any GUI backend. Independent of

[Numpy-discussion] current numpy in python 2.5 ?

2011-02-01 Thread Mark Sienkiewicz
Hi, I looked on the web site, but I couldn't find a list of python versions that numpy expects to work on. Is the trunk still expected to work in Python 2.5 ? I'm asking because it doesn't, but I don't want to file a bug report if it is not expected to. The problem shows up when I run numpy.t

Re: [Numpy-discussion] numpy distutils breaks scipy install on mac

2009-12-09 Thread Mark Sienkiewicz
Robert Kern wrote: > On Tue, Dec 8, 2009 at 15:36, Mark Sienkiewicz wrote: > >> >> ( Presumably, some other version of gfortan does accept -arch, or this >> code wouldn't be here, right? ) >> > > Right. The -arch flag was added by Apple to GCC and

[Numpy-discussion] numpy distutils breaks scipy install on mac

2009-12-08 Thread Mark Sienkiewicz
When I compile scipy on a mac, the build fails with: ... gfortran:f77: scipy/fftpack/src/dfftpack/dcosqb.f f951: error: unrecognized command line option "-arch" f951: error: unrecognized command line option "-arch" f951: error: unrecognized command line option "-arch" f951: error: unrecognized com

Re: [Numpy-discussion] numpy install script changes permissions?

2009-09-25 Thread Mark Sienkiewicz
> In the source build folder, all numpy test scripts have the correct > permissions and are not marked as executable, > > but in the install directory > (/usr/local/lib/python2.6/dist-packages/numpy/), the test test scripts > have completely different permissions, and are all marked as > executabl

Re: [Numpy-discussion] Numpy depends on OpenSSL ???

2009-09-23 Thread Mark Sienkiewicz
Robert Kern wrote: > On Wed, Sep 23, 2009 at 10:52, Mark Sienkiewicz wrote: > >> I have discovered the hard way that numpy depends on openssl. >> >> I am building a 64 bit python environment for the macintosh. I >> currently do not have a 64 bit openssl li

[Numpy-discussion] Numpy depends on OpenSSL ???

2009-09-23 Thread Mark Sienkiewicz
I have discovered the hard way that numpy depends on openssl. I am building a 64 bit python environment for the macintosh. I currently do not have a 64 bit openssl library installed, so the python interpreter does not have hashlib. (hashlib gets its md5 function from the openssl library.) Th

[Numpy-discussion] 1.3.0 rc1 MATHLIB env variable / bad compiler flags

2009-04-01 Thread Mark Sienkiewicz
I have this configuration: numpy 1.3.0 rc1 Solaris 10 Python 2.5.4 compiled as a 64 bit executable When I try to install numpy, it says: C compiler: cc -DNDEBUG -O -xarch=native64 -xcode=pic32 compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/stsci/Python-2.5.4/include/python2.5 -

Re: [Numpy-discussion] Numpy 1.3.0 rc1 fails find_duplicates on Solaris

2009-03-31 Thread Mark Sienkiewicz
Pauli Virtanen wrote: > > Probably they are both related to unspecified sort order for > the duplicates. There were some sort-order ignoring missing in the test. > > I think the test is now fixed in trunk: > > http://projects.scipy.org/numpy/changeset/6827 > The test passes in 1.4.0.dev68

Re: [Numpy-discussion] Numpy 1.3.0 rc1 fails find_duplicates on Solaris

2009-03-30 Thread Mark Sienkiewicz
>> == >> FAIL: Test find_duplicates >> -- >> ... >> AssertionError: >> Arrays are not equal >> >> (mismatch 50.0%) >> x: array([(1, (2.0, 'B')), (2, (2.0, 'B')),

[Numpy-discussion] Numpy 1.3.0 rc1 fails find_duplicates on Solaris

2009-03-30 Thread Mark Sienkiewicz
Numpy 1.3.0 rc1 fails this self-test on Solaris. == FAIL: Test find_duplicates -- Traceback (most recent call last): File "/usr/ra/pyssg/2.5.1/numpy/lib/tests/