[Yt-svn] yt-commit r1536 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Sat Nov 21 14:11:56 PST 2009


Author: mturk
Date: Sat Nov 21 14:11:54 2009
New Revision: 1536
URL: http://yt.enzotools.org/changeset/1536

Log:
The __repr__ of a projection was broken



Modified:
   trunk/yt/lagos/BaseDataTypes.py

Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py	(original)
+++ trunk/yt/lagos/BaseDataTypes.py	Sat Nov 21 14:11:54 2009
@@ -555,6 +555,7 @@
         """
         self.axis = axis
         AMRData.__init__(self, pf, fields, **kwargs)
+        self.field = field
         self.set_field_parameter("axis",axis)
         
     def _convert_field_name(self, field):
@@ -1176,6 +1177,7 @@
         of that weight.
         """
         AMR2DData.__init__(self, axis, field, pf, node_name = None, **kwargs)
+        self.weight_field = weight_field
         self._field_cuts = field_cuts
         self.serialize = serialize
         self._set_center(center)



More information about the yt-svn mailing list