[yt-svn] commit/yt: MatthewTurk: Removing some leftover, unnecessary and problematic calls in the Orion
Bitbucket
commits-noreply at bitbucket.org
Tue Mar 6 08:08:50 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/8c971580c2d8/
changeset: 8c971580c2d8
branch: stable
user: MatthewTurk
date: 2012-03-06 17:08:29
summary: Removing some leftover, unnecessary and problematic calls in the Orion
frontend.
affected #: 1 file
diff -r 527ce3e90f5a1e7cdb9b5cc2aa92fd506303920c -r 8c971580c2d8e99ff60a8592ac2413117daf1a0a yt/frontends/orion/data_structures.py
--- a/yt/frontends/orion/data_structures.py
+++ b/yt/frontends/orion/data_structures.py
@@ -127,8 +127,6 @@
self.readGlobalHeader(header_filename,self.parameter_file.paranoid_read) # also sets up the grid objects
self.__cache_endianness(self.levels[-1].grids[-1])
AMRHierarchy.__init__(self,pf, self.data_style)
- self._setup_data_io()
- self._setup_field_list()
self._populate_hierarchy()
def readGlobalHeader(self,filename,paranoid_read):
@@ -360,19 +358,6 @@
mask = na.logical_and(mask, (self.grid_levels == (grid.Level+1)).flat)
return self.grids[mask]
- def _setup_field_list(self):
- self.derived_field_list = []
- for field in self.field_info:
- try:
- fd = self.field_info[field].get_dependencies(pf = self.parameter_file)
- except:
- continue
- available = na.all([f in self.field_list for f in fd.requested])
- if available: self.derived_field_list.append(field)
- for field in self.field_list:
- if field not in self.derived_field_list:
- self.derived_field_list.append(field)
-
def _count_grids(self):
"""this is already provided in
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