[yt-svn] commit/yt: xarthisius: Merged in hyschive/yt-fork (pull request #2516)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Feb 17 13:21:47 PST 2017
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/abf5a8eff1b2/
Changeset: abf5a8eff1b2
Branch: yt
User: xarthisius
Date: 2017-02-17 21:21:40+00:00
Summary: Merged in hyschive/yt-fork (pull request #2516)
Remove unnecessary array flatten in the GAMER frontend
Approved-by: Kacper Kowalik
Approved-by: Matt Turk
Affected #: 1 file
diff -r 34b8e48ab378959aa6c76c6ee00d77a3b9c1f2b0 -r abf5a8eff1b2d0cd776a41a33e5d3f3d25232ecc yt/frontends/gamer/data_structures.py
--- a/yt/frontends/gamer/data_structures.py
+++ b/yt/frontends/gamer/data_structures.py
@@ -126,12 +126,12 @@
son_list = self._handle["Tree/Son"].value
for gid in range(self.num_grids):
- grid = self.grids.flat[gid]
+ grid = self.grids[gid]
son_gid0 = son_list[gid]
# set up the parent-children relationship
if son_gid0 >= 0:
- grid.Children = [ self.grids.flat[son_gid0+s] for s in range(8) ]
+ grid.Children = [ self.grids[son_gid0+s] for s in range(8) ]
for son_grid in grid.Children: son_grid.Parent = grid
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