[yt-svn] commit/yt: MatthewTurk: Fixing problem for in-memory enzo outputs
Bitbucket
commits-noreply at bitbucket.org
Thu Dec 1 06:45:37 PST 2011
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/cbe5c5a32c57/
changeset: cbe5c5a32c57
branch: yt
user: MatthewTurk
date: 2011-12-01 15:45:18
summary: Fixing problem for in-memory enzo outputs
affected #: 1 file
diff -r c1a446be3a7a7d1fca1098ada8890e6e07f1458a -r cbe5c5a32c571ef1fb0ae4f5c4efd51c3f2cd9cc yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -575,15 +575,15 @@
reverse_tree = self.enzo.hierarchy_information["GridParentIDs"].ravel().tolist()
# Initial setup:
mylog.debug("Reconstructing parent-child relationships")
- self.grids = []
+ grids = []
# We enumerate, so it's 0-indexed id and 1-indexed pid
self.filenames = ["-1"] * self.num_grids
for id,pid in enumerate(reverse_tree):
- self.grids.append(self.grid(id+1, self))
- self.grids[-1].Level = self.grid_levels[id, 0]
+ grids.append(self.grid(id+1, self))
+ grids[-1].Level = self.grid_levels[id, 0]
if pid > 0:
- self.grids[-1]._parent_id = pid
- self.grids[pid-1]._children_ids.append(self.grids[-1].id)
+ grids[-1]._parent_id = pid
+ grids[pid-1]._children_ids.append(grids[-1].id)
self.max_level = self.grid_levels.max()
mylog.debug("Preparing grids")
self.grids = na.empty(len(grids), dtype='object')
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