[Yt-svn] commit/yt: MatthewTurk: Fixing silly error in Stream handler.

Bitbucket commits-noreply at bitbucket.org
Wed Oct 5 04:54:11 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/bea5b332683d/
changeset:   bea5b332683d
branch:      yt
user:        MatthewTurk
date:        2011-10-05 13:43:38
summary:     Fixing silly error in Stream handler.
affected #:  1 file (-1 bytes)

--- a/yt/frontends/stream/data_structures.py	Tue Oct 04 16:46:53 2011 -0400
+++ b/yt/frontends/stream/data_structures.py	Wed Oct 05 07:43:38 2011 -0400
@@ -166,10 +166,10 @@
         if parent_ids is not None:
             reverse_tree = self.stream_handler.parent_ids.tolist()
             # Initial setup:
-            for id,pid in enumerate(reverse_tree):
+            for gid,pid in enumerate(reverse_tree):
                 if pid >= 0:
-                    self.grids[-1]._parent_id = pid
-                    self.grids[pid]._children_ids.append(self.grids[-1].id)
+                    self.grids[id]._parent_id = pid
+                    self.grids[pid]._children_ids.append(self.grids[gid].id)
         else:
             mylog.debug("Reconstructing parent-child relationships")
             self._reconstruct_parent_child()

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