[Yt-svn] commit/yt: MatthewTurk: The volume rendering shifted by ~1e-11 over the upgrade Jeff's working on for
Bitbucket
commits-noreply at bitbucket.org
Sat Oct 29 06:54:13 PDT 2011
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/e127cb56564d/
changeset: e127cb56564d
branch: yt
user: MatthewTurk
date: 2011-10-29 15:53:53
summary: The volume rendering shifted by ~1e-11 over the upgrade Jeff's working on for
Numpy, Cython and h5py. I am changing the test to only check for deltas
greater than 1e-9.
affected #: 1 file
diff -r e04463e1db6b47f81ff39ce25f0a8f984ecf050e -r e127cb56564d5fa8a0098a9c82904e71461072ea tests/volume_rendering.py
--- a/tests/volume_rendering.py
+++ b/tests/volume_rendering.py
@@ -31,6 +31,8 @@
self.result = image
def compare(self, old_result):
- if not na.all(self.result==old_result):
- raise VolumeRenderingInconsistent()
+ # Compare the deltas; give a leeway of 1e-8
+ delta = na.nanmax( na.abs(self.result - old_result) /
+ (self.result + old_result) )
+ if delta > 1e-9: raise VolumeRenderingInconsistent()
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list