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

Bitbucket commits-noreply at bitbucket.org
Mon Nov 12 14:28:35 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/232e4623dc1e/
changeset:   232e4623dc1e
branch:      yt
user:        samskillman
date:        2012-11-12 23:27:06
summary:     Don't test field values for particles.  Also assert_rel_equal does not have a verbose option.
affected #:  2 files

diff -r d9a5a2350dad48594e24bb3ba3d1c013ce2e5edb -r 232e4623dc1e1e91ca6442706eed185584f3ed00 yt/frontends/enzo/answer_testing_support.py
--- a/yt/frontends/enzo/answer_testing_support.py
+++ b/yt/frontends/enzo/answer_testing_support.py
@@ -63,6 +63,7 @@
     yield ParentageRelationshipsTest(pf_fn)
     for field in fields:
         yield GridValuesTest(pf_fn, field)
+        if 'particle' in field: continue
         for axis in [0, 1, 2]:
             for ds in dso:
                 for weight_field in [None, "Density"]:


diff -r d9a5a2350dad48594e24bb3ba3d1c013ce2e5edb -r 232e4623dc1e1e91ca6442706eed185584f3ed00 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -310,7 +310,7 @@
                          err_msg=err_msg, verbose=True)
         else:
             assert_rel_equal(new_result, old_result, self.decimals,
-                             err_msg=err_msg, verbose=True)
+                             err_msg=err_msg)
 
 class AllFieldValuesTest(AnswerTestingTest):
     _type_name = "AllFieldValues"
@@ -334,7 +334,7 @@
                          err_msg=err_msg, verbose=True)
         else:
             assert_rel_equal(new_result, old_result, self.decimals,
-                             err_msg=err_msg, verbose=True)
+                             err_msg=err_msg)
             
 class ProjectionValuesTest(AnswerTestingTest):
     _type_name = "ProjectionValues"



https://bitbucket.org/yt_analysis/yt/changeset/d84dc871dfc9/
changeset:   d84dc871dfc9
branch:      yt
user:        samskillman
date:        2012-11-12 23:27:38
summary:     Merging
affected #:  1 file

diff -r 232e4623dc1e1e91ca6442706eed185584f3ed00 -r d84dc871dfc9657a2b2f461cb7a6e0bad7508386 yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py
+++ b/yt/frontends/enzo/simulation_handling.py
@@ -241,9 +241,13 @@
             if my_initial_time == my_times[my_indices[0] - 1]: my_indices[0] -= 1
             my_outputs = my_all_outputs[my_indices[0]:my_indices[1]]
 
-        TimeSeriesData.__init__(self, outputs=[output['filename'] for output in my_outputs],
-                                parallel=parallel)
-        mylog.info("%d outputs loaded into time series." % len(my_outputs))
+        init_outputs = []
+        for output in my_outputs:
+            if os.path.exists(output['filename']):
+                init_outputs.append(output['filename'])
+            
+        TimeSeriesData.__init__(self, outputs=init_outputs, parallel=parallel)
+        mylog.info("%d outputs loaded into time series." % len(init_outputs))
 
     def _parse_parameter_file(self):
         """
@@ -585,6 +589,8 @@
         if outputs is None:
             outputs = self.all_outputs
         my_outputs = []
+        if not outputs:
+            return my_outputs
         for value in values:
             outputs.sort(key=lambda obj:np.fabs(value - obj[key]))
             if (tolerance is None or np.abs(value - outputs[0][key]) <= tolerance) \

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