Hello, I've been going thru Dave Kuhlman's "SciPy Course Outline" (http:// www.rexx.com/~dkuhlman/scipy_course_01.html) and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should worry about? Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4, numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and Numeric.__version__ 24.2 Thanks, --b ========== In [94]: import numpy In [95]: numpy.test() Found 13 tests for numpy.core.umath Found 9 tests for numpy.lib.arraysetops Found 3 tests for numpy.fft.helper Found 1 tests for numpy.lib.ufunclike Found 4 tests for numpy.ctypeslib Found 2 tests for numpy.lib.polynomial Found 8 tests for numpy.core.records Found 26 tests for numpy.core.numeric Found 5 tests for numpy.distutils.misc_util Found 3 tests for numpy.lib.getlimits Found 31 tests for numpy.core.numerictypes Found 4 tests for numpy.core.scalarmath Found 12 tests for numpy.lib.twodim_base Found 47 tests for numpy.lib.shape_base Found 4 tests for numpy.lib.index_tricks Found 32 tests for numpy.linalg.linalg Found 42 tests for numpy.lib.type_check Found 184 tests for numpy.core.multiarray Found 36 tests for numpy.core.ma Found 10 tests for numpy.core.defmatrix Found 41 tests for numpy.lib.function_base Found 0 tests for __main__ ........................................................................ ........................................................................ ........................................................................ ........................................................................ ........................................................................ F....................................................................... ........................................................................ ............. ====================================================================== FAIL: Ticket #112 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr assert(str(a)[1:9] == str(a[0])[:8]) AssertionError ---------------------------------------------------------------------- Ran 517 tests in 1.241s FAILED (failures=1) <unittest.TextTestRunner object at 0x6194f30>
belinda thom wrote:
Hello,
I've been going thru Dave Kuhlman's "SciPy Course Outline" (http:// www.rexx.com/~dkuhlman/scipy_course_01.html) and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should worry about?
Not a real problem. The test has been commented out in svn with the notation: # Longfloat support is not consistent enough across # platforms for this test to be meaningful. Eric
Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4, numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and Numeric.__version__ 24.2
Thanks,
--b
==========
In [94]: import numpy
In [95]: numpy.test() Found 13 tests for numpy.core.umath Found 9 tests for numpy.lib.arraysetops Found 3 tests for numpy.fft.helper Found 1 tests for numpy.lib.ufunclike Found 4 tests for numpy.ctypeslib Found 2 tests for numpy.lib.polynomial Found 8 tests for numpy.core.records Found 26 tests for numpy.core.numeric Found 5 tests for numpy.distutils.misc_util Found 3 tests for numpy.lib.getlimits Found 31 tests for numpy.core.numerictypes Found 4 tests for numpy.core.scalarmath Found 12 tests for numpy.lib.twodim_base Found 47 tests for numpy.lib.shape_base Found 4 tests for numpy.lib.index_tricks Found 32 tests for numpy.linalg.linalg Found 42 tests for numpy.lib.type_check Found 184 tests for numpy.core.multiarray Found 36 tests for numpy.core.ma Found 10 tests for numpy.core.defmatrix Found 41 tests for numpy.lib.function_base Found 0 tests for __main__ ........................................................................ ........................................................................ ........................................................................ ........................................................................ ........................................................................ F....................................................................... ........................................................................ ............. ====================================================================== FAIL: Ticket #112 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr assert(str(a)[1:9] == str(a[0])[:8]) AssertionError
---------------------------------------------------------------------- Ran 517 tests in 1.241s
FAILED (failures=1) <unittest.TextTestRunner object at 0x6194f30>
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Eric, Thanks for the well-thought-out answers to some of my recent posts. I've been using: http://pythonmac.org/packages/py24-fat/index.html for installing scipy, numpy, and matplotlib, as I didn't feel as confident installing things manually. Should I be using svn instead? (Is that what most users do?) And if so, is there a two-minute tutorial on what I'd need to do to get that stuff running on my machine? (The code I end up using needs to be stable enough for classroom use). Thanks again, --b On Dec 29, 2006, at 6:58 PM, Eric Firing wrote:
belinda thom wrote:
Hello,
I've been going thru Dave Kuhlman's "SciPy Course Outline" (http:// www.rexx.com/~dkuhlman/scipy_course_01.html) and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should worry about?
Not a real problem. The test has been commented out in svn with the notation:
# Longfloat support is not consistent enough across # platforms for this test to be meaningful.
Eric
Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4, numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and Numeric.__version__ 24.2
Thanks,
--b
==========
In [94]: import numpy
In [95]: numpy.test() Found 13 tests for numpy.core.umath Found 9 tests for numpy.lib.arraysetops Found 3 tests for numpy.fft.helper Found 1 tests for numpy.lib.ufunclike Found 4 tests for numpy.ctypeslib Found 2 tests for numpy.lib.polynomial Found 8 tests for numpy.core.records Found 26 tests for numpy.core.numeric Found 5 tests for numpy.distutils.misc_util Found 3 tests for numpy.lib.getlimits Found 31 tests for numpy.core.numerictypes Found 4 tests for numpy.core.scalarmath Found 12 tests for numpy.lib.twodim_base Found 47 tests for numpy.lib.shape_base Found 4 tests for numpy.lib.index_tricks Found 32 tests for numpy.linalg.linalg Found 42 tests for numpy.lib.type_check Found 184 tests for numpy.core.multiarray Found 36 tests for numpy.core.ma Found 10 tests for numpy.core.defmatrix Found 41 tests for numpy.lib.function_base Found 0 tests for __main__ ..................................................................... ... ..................................................................... ... ..................................................................... ... ..................................................................... ... ..................................................................... ... F.................................................................... ... ..................................................................... ... ............. ===================================================================== = FAIL: Ticket #112 --------------------------------------------------------------------- - Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr assert(str(a)[1:9] == str(a[0])[:8]) AssertionError
--------------------------------------------------------------------- - Ran 517 tests in 1.241s
FAILED (failures=1) <unittest.TextTestRunner object at 0x6194f30>
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
belinda thom wrote:
Eric,
Thanks for the well-thought-out answers to some of my recent posts.
I've been using:
http://pythonmac.org/packages/py24-fat/index.html
for installing scipy, numpy, and matplotlib, as I didn't feel as confident installing things manually.
Should I be using svn instead? (Is that what most users do?) And if so, is there a two-minute tutorial on what I'd need to do to get that stuff running on my machine? (The code I end up using needs to be stable enough for classroom use).
Belinda, I think the great majority of mpl, numpy, and scipy users install from packages, not from svn or tarballs. I am in the minority. I use linux (presently Ubuntu Edgy, previously Mandriva), and in general installation from svn and tarballs is easy with linux for all three of these packages. There is an initial learning curve when one has to get the right libraries and devel packages installed, but once that is done then subsequent updates from svn are not a problem at all. I do not use Windows or OSX so I do not have personal experience, but based on what I have seen on the mailing lists it seems pretty clear that building from source--any source--on either of these platforms is much more daunting, and very few people do it. As far as I know, your pythonmac package source is a good choice. I'm sure one of the many Mac users on this list can elaborate. Eric
Thanks again for the input. You've been really helpful. On Dec 29, 2006, at 8:47 PM, Eric Firing wrote:
As far as I know, your pythonmac package source is a good choice. I'm sure one of the many Mac users on this list can elaborate.
I won't go into the long tirade of problems I've run into when trying to use these packages w/Mac OS X 10.4 But just in case you're interested in the flavor, the wx pacakge doesn't seem to work w/ matplotlib's WXAgg, setting matplotlib's numerix to Numeric breaks plotting. The list goes on. Your comments about installing from svn are like others I've heard. Unfortunately, if I really might have to bite the bullet at some point, as the wx / matplotlib problem is likely related to the fact that various pieces were built with different versions of the same compiler. (Sigh). --b
participants (2)
-
belinda thom
-
Eric Firing