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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu Mar 12 13:06:03 PDT 2009


Author: mturk
Date: Thu Mar 12 13:06:02 2009
New Revision: 1206
URL: http://yt.spacepope.org/changeset/1206

Log:
Added a property for the normal vector to fix a unit test with pickling



Modified:
   trunk/yt/lagos/BaseDataTypes.py

Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py	(original)
+++ trunk/yt/lagos/BaseDataTypes.py	Thu Mar 12 13:06:02 2009
@@ -811,6 +811,10 @@
             if node_name is True: self._deserialize()
             else: self._deserialize(node_name)
 
+    @property
+    def normal(self):
+        return self._norm_vec
+
     def _get_list_of_grids(self):
         # Recall that the projection of the distance vector from a point
         # onto the normal vector of a plane is:



More information about the yt-svn mailing list