Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure #2

Open
GoogleCodeExporter opened this issue Mar 23, 2015 · 3 comments
Open

Test failure #2

GoogleCodeExporter opened this issue Mar 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Resolved in r81

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant