[Yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Tue Nov 1 11:39:25 PDT 2011


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/9647eb3b7392/
changeset:   9647eb3b7392
branch:      yt
user:        jwise77
date:        2011-11-01 18:36:50
summary:     Reports the maximum delta in the array now, in addition to printing
the whole delta array.
affected #:  1 file

diff -r dbbf6cd240c63a663020ed8fc8eb5faa3fb6c742 -r 9647eb3b7392392bdc857424810ccb1a02319746 yt/utilities/answer_testing/output_tests.py
--- a/yt/utilities/answer_testing/output_tests.py
+++ b/yt/utilities/answer_testing/output_tests.py
@@ -55,8 +55,8 @@
 
 class ArrayDelta(ValueDelta):
     def __repr__(self):
-        return "ArrayDelta: Delta %s, max of %s" % (
-            self.delta, self.acceptable)
+        return "ArrayDelta: Delta %s, max of %s, acceptable of %s" % (
+            self.delta, self.delta.max(), self.acceptable)
 
 class ShapeMismatch(RegressionTestException):
     def __init__(self, old_shape, current_shape):



https://bitbucket.org/yt_analysis/yt/changeset/4dad11dc2d2d/
changeset:   4dad11dc2d2d
branch:      yt
user:        jwise77
date:        2011-11-01 18:48:10
summary:     Reporting the number of values above the limit.
affected #:  1 file

diff -r 9647eb3b7392392bdc857424810ccb1a02319746 -r 4dad11dc2d2d22545958f9007c18a11650278622 yt/utilities/answer_testing/output_tests.py
--- a/yt/utilities/answer_testing/output_tests.py
+++ b/yt/utilities/answer_testing/output_tests.py
@@ -55,8 +55,11 @@
 
 class ArrayDelta(ValueDelta):
     def __repr__(self):
-        return "ArrayDelta: Delta %s, max of %s, acceptable of %s" % (
-            self.delta, self.delta.max(), self.acceptable)
+        nabove = len(na.where(self.delta > self.acceptable)[0])
+        return "ArrayDelta: Delta %s, max of %s, acceptable of %s.\n" \
+               "%d of %d points above the acceptable limit" % \
+               (self.delta, self.delta.max(), self.acceptable, nabove,
+                self.delta.size)
 
 class ShapeMismatch(RegressionTestException):
     def __init__(self, old_shape, current_shape):

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