[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Feb 17 13:21:48 PST 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/7d001545594b/
Changeset: 7d001545594b
Branch: yt
User: hyschive
Date: 2017-02-05 20:07:32+00:00
Summary: Remove unnecessary array flatten in the GAMER frontend
Affected #: 1 file
diff -r 13c1ee22f924f988c6dfc68c9b64d6e9acdebfd2 -r 7d001545594bbafeb2b2e6f627c3e1ffeb4f3c60 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
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