FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FIX: loosen numerical tolerance in test_pareto() by njsmith · Pull Request #430 · numpy/numpy · GitHub

/ numpy Public

FIX: loosen numerical tolerance in test_pareto() - #430

Merged
njsmith merged 1 commit into
numpy:masterfrom
njsmith:test_pareto-fix
Sep 11, 2012
Merged

FIX: loosen numerical tolerance in test_pareto()#430
njsmith merged 1 commit into
numpy:masterfrom
njsmith:test_pareto-fix

Conversation

njsmith commented Sep 7, 2012

Copy link
Copy Markdown
Member

[This is a tighter version of #425 and I think supersedes it]

The problem was that in 32bit Ubuntu 12.04, one gets the following:

/home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto()
-> np.testing.assert_array_almost_equal(actual, desired, decimal=15)
(Pdb) actual[1, 0]
52828779.702948704
(Pdb) desired[1, 0]
52828779.702948518

and the test was comparing the numbers to 1e-14, which obviously
failed.

Fixes #424.

The problem was that in 32bit Ubuntu 12.04, one gets the following:

>
/home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto()
-> np.testing.assert_array_almost_equal(actual, desired, decimal=15)
(Pdb) actual[1, 0]
52828779.702948704
(Pdb) desired[1, 0]
52828779.702948518

and the test was comparing the numbers to 1e-14, which obviously
failed.

Fixes numpy#424.

njsmith commented Sep 11, 2012

Copy link
Copy Markdown
Member Author

No-one seems to object, so merging...

njsmith added a commit that referenced this pull request Sep 11, 2012
FIX: loosen numerical tolerance in test_pareto()
njsmith merged commit 6315567 into numpy:master Sep 11, 2012

certik commented Sep 11, 2012

Copy link
Copy Markdown
Contributor

This is +1.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mysterious test_pareto failure on Travis

2 participants


Back | FazBrowse Home | New Git URL