Skip to content

BF: work around np.allclose float128 bug #304

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

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

matthew-brett
Copy link
Member

Numpy 1.9.2 allclose thinks that np.inf in float128 precision is not allclose
to itself. Work round with expanded assert_allclose_safely function.

See: http://nipy.bic.berkeley.edu/builders/nibabel-py2.7-osx-10.6/builds/178/steps/shell_4/logs/stdio for resulting error, maybe fixed by this PR.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 94.35% when pulling 9533145 on matthew-brett:workaround-allclose-bug into b0a8006 on nipy:master.

@matthew-brett matthew-brett force-pushed the workaround-allclose-bug branch from 9533145 to 503c00c Compare March 31, 2015 08:56
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 94.35% when pulling 503c00c on matthew-brett:workaround-allclose-bug into b0a8006 on nipy:master.

@matthew-brett
Copy link
Member Author

Any comments here?

Numpy 1.9.2 allclose thinks that np.inf in float128 precision is not
allclose to itself.  Work round with expanded assert_allclose_safely
function.
@matthew-brett matthew-brett force-pushed the workaround-allclose-bug branch from 503c00c to 593a7d4 Compare April 2, 2015 00:43
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 94.35% when pulling 593a7d4 on matthew-brett:workaround-allclose-bug into b0a8006 on nipy:master.

@yarikoptic
Copy link
Member

fwiw with such extensive test I do not have a concern... send to be doing the right thing :-)

@matthew-brett
Copy link
Member Author

:) - OK - I'll merge then. Thanks for taking a look.

matthew-brett added a commit that referenced this pull request Apr 2, 2015
MRG: work around np.allclose float128 bug

Numpy 1.9.2 allclose thinks that np.inf in float128 precision is not allclose
to itself. Work round with expanded assert_allclose_safely function.
@matthew-brett matthew-brett merged commit 495b5d8 into nipy:master Apr 2, 2015
@matthew-brett matthew-brett deleted the workaround-allclose-bug branch April 2, 2015 22:39
grlee77 pushed a commit to grlee77/nibabel that referenced this pull request Mar 15, 2016
MRG: work around np.allclose float128 bug

Numpy 1.9.2 allclose thinks that np.inf in float128 precision is not allclose
to itself. Work round with expanded assert_allclose_safely function.
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.

3 participants