meifazhuce / pywafo

Automatically exported from code.google.com/p/pywafo
0 stars 0 forks source link

Test failure #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://pywafo.googlecode.com/svn/trunk/ pywafo-read-only
2. python setup.py install --prefix=$HOME/local
3. python -i test_gaussian.py 

What is the expected output? What do you see instead?

wafo.wafodata: plotbackend is set to matplotlib.pyplot
/home/nwagner/local/lib64/python2.6/site-packages/scikits/__init__.py:1: 
UserWarning: Module pkg_resources was already imported from 
/home/nwagner/local/lib64/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg
_resources.py, but 
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is 
being added to sys.path
  __import__('pkg_resources').declare_namespace(__name__)
/home/nwagner/local/lib64/python2.6/site-packages/scikits/__init__.py:1: 
UserWarning: Module site was already imported from 
/usr/lib64/python2.6/site.pyc, but 
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is 
being added to sys.path
  __import__('pkg_resources').declare_namespace(__name__)
**********************************************************************
File "test_gaussian.py", line 122, in __main__.test_prbnormnd
Failed example:
    [val,err,inform] = prbnormnd(Sc,A,B);val;err;inform
Expected:
    0.0019456719705212067
    1.0059406844578488e-05
    0
Got:
    0.0019456719705212067
    1.0059406844578299e-05
    0
**********************************************************************
File "test_gaussian.py", line 40, in __main__.test_rind
Failed example:
    rind(Sc,m,Blo,Bup,indI, xc, nt=0)
Expected:
    (array([ 0.05494076]), array([ 0.00083066]), array([  1.00000000e-10]))
Got:
    (array([ 0.05539833]), array([ 0.00071588]), array([  1.00000000e-10]))
**********************************************************************
2 items had failures:
   1 of  12 in __main__.test_prbnormnd
   1 of  31 in __main__.test_rind
***Test Failed*** 2 failures.

What version of the product are you using? On what operating system?

Linux linux-mogv 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by nils...@googlemail.com on 8 Feb 2011 at 7:14

GoogleCodeExporter commented 9 years ago
Resolved in r81

Original comment by Per.Andreas.Brodtkorb@gmail.com on 8 Feb 2011 at 9:31

GoogleCodeExporter commented 9 years ago
File "test_gaussian.py", line 22, in __main__.test_rind
Failed example:
    'E0 = %2.6f' % E0  
Expected:
    'E0 = 0.001946'
Got:
    'E0 = 0.001945'
**********************************************************************
File "test_gaussian.py", line 40, in __main__.test_rind
Failed example:
    rind(Sc,m,Blo,Bup,indI, xc, nt=0)
Expected:
    (array([ 0.05494076]), array([ 0.00083066]), array([  1.00000000e-10]))
Got:
    (array([ 0.05525465]), array([ 0.00078925]), array([  1.00000000e-10]))
**********************************************************************
1 items had failures:
   2 of  31 in __main__.test_rind
***Test Failed*** 2 failures.

Original comment by nils...@googlemail.com on 9 Feb 2011 at 6:27

GoogleCodeExporter commented 9 years ago
This is actally not a failure, because Rind uses the random generator to 
estimate the integral. Thus the integral value will slightly change from 
computer to computer. The numbers are though 99% of the time equal up to the 
requested accuracy.

Original comment by Per.Andreas.Brodtkorb@gmail.com on 13 Feb 2011 at 11:31