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

Bitbucket commits-noreply at bitbucket.org
Wed Nov 7 12:20:47 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/97cad0ed7f04/
changeset:   97cad0ed7f04
branch:      yt
user:        brittonsmith
date:        2012-11-07 21:20:31
summary:     Adding VerifySimulationSameTest.
affected #:  1 file

diff -r 7f4089b10365fec94474e06b07a98892298f3233 -r 97cad0ed7f04233852f8509f9b43bc923f861e51 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -315,6 +315,22 @@
         for k in new_result:
             assert_equal(new_result[k], old_result[k])
 
+class VerifySimulationSameTest(AnswerTestingTest):
+    _type_name = "VerifySimulationSame"
+    _attrs = ()
+
+    def __init__(self, simulation_obj):
+        self.pf = simulation_obj
+
+    def run(self):
+        result = [ds.current_time for ds in self.pf]
+        return result
+
+    def compare(self, new_result, old_result):
+        assert_equal(len(new_result), len(old_result))
+        for i in range(len(new_result)):
+            assert_equal(new_result[i], old_result[i])
+        
 class GridHierarchyTest(AnswerTestingTest):
     _type_name = "GridHierarchy"
     _attrs = ()



https://bitbucket.org/yt_analysis/yt/changeset/353dd610ecef/
changeset:   353dd610ecef
branch:      yt
user:        brittonsmith
date:        2012-11-07 21:20:44
summary:     Merged.
affected #:  1 file

diff -r 97cad0ed7f04233852f8509f9b43bc923f861e51 -r 353dd610ecef29427f9c333c7e2581bd0ffcfeb9 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -34,6 +34,7 @@
 from yt.testing import *
 from yt.config import ytcfg
 from yt.mods import *
+from yt.data_objects.static_output import StaticOutput
 import cPickle
 
 from yt.utilities.logger import disable_stream_logging

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