[Yt-svn] commit/yt: brittonsmith: Fixed a bad variable name and moved .data to .field_data in a test.

Bitbucket commits-noreply at bitbucket.org
Fri Oct 21 15:54:41 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/8c2c87d59bdf/
changeset:   8c2c87d59bdf
branch:      yt
user:        brittonsmith
date:        2011-10-22 00:54:27
summary:     Fixed a bad variable name and moved .data to .field_data in a test.
affected #:  2 files (-1 bytes)

--- a/yt/data_objects/data_containers.py	Fri Oct 21 08:38:51 2011 -0600
+++ b/yt/data_objects/data_containers.py	Fri Oct 21 18:54:27 2011 -0400
@@ -2044,7 +2044,7 @@
         data['pdy'] *= 0.5
         data['fields'] = field_data
         # Now we run the finalizer, which is ignored if we don't need it
-        data = self.comm.par_combine_object(temp_data, datatype='dict', op='cat')
+        data = self.comm.par_combine_object(data, datatype='dict', op='cat')
         field_data = na.vsplit(data.pop('fields'), len(fields))
         for fi, field in enumerate(fields):
             self[field] = field_data[fi].ravel()


--- a/yt/utilities/answer_testing/default_tests.py	Fri Oct 21 08:38:51 2011 -0600
+++ b/yt/utilities/answer_testing/default_tests.py	Fri Oct 21 18:54:27 2011 -0400
@@ -60,7 +60,7 @@
             results[field] = []
             for ax in range(3):
                 t = self.pf.h.proj(ax, field)
-                results[field].append(t.data)
+                results[field].append(t.field_data)
         self.result = results
 
     def compare(self, old_result):

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