[Yt-svn] commit/yt: MatthewTurk: Fixing some errors in derived field and field list caching for in situ
    Bitbucket 
    commits-noreply at bitbucket.org
       
    Fri Mar 18 17:23:47 PDT 2011
    
    
  
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/fe22f55aafa5/
changeset:   r3854:fe22f55aafa5
branch:      yt
user:        MatthewTurk
date:        2011-03-19 01:23:40
summary:     Fixing some errors in derived field and field list caching for in situ
affected #:  1 file (168 bytes)
--- a/yt/frontends/enzo/data_structures.py	Fri Mar 18 13:03:43 2011 -0700
+++ b/yt/frontends/enzo/data_structures.py	Fri Mar 18 17:23:40 2011 -0700
@@ -569,9 +569,14 @@
         if self.__class__._cached_field_list is None:
             EnzoHierarchy._detect_fields(self)
             self.__class__._cached_field_list = self.field_list
+        else:
+            self.field_list = self.__class__._cached_field_list
+
+    def _setup_derived_fields(self):
+        if self.__class__._cached_derived_field_list is None:
+            EnzoHierarchy._setup_derived_fields(self)
             self.__class__._cached_derived_field_list = self.derived_field_list
         else:
-            self.field_list = self.__class__._cached_field_list
             self.derived_field_list = self.__class__._cached_derived_field_list
 
     def _generate_random_grids(self):
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