[yt-svn] commit/yt: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Aug 26 10:00:49 PDT 2014


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/808f03b664e2/
Changeset:   808f03b664e2
Branch:      yt
User:        bwoshea
Date:        2014-08-26 14:25:53
Summary:     Slight modification to annotate_grids() so that grids are overlaid in a predictable order - lowest level on the bottom, highest level on the top.
Affected #:  1 file

diff -r a0e5f14b3a77e1e72e8133b491b71583b59959f1 -r 808f03b664e2b518da97e89e90556c4ae0951691 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -432,6 +432,12 @@
         min_level = self.min_level or 0
         max_level = self.max_level or levels.max()
 
+        # sorts the three arrays in order of ascending level - this makes images look nicer
+        new_indices = np.argsort(levels)
+        levels = levels[new_indices]
+        GLE = GLE[new_indices]
+        GRE = GRE[new_indices]
+        
         for px_off, py_off in zip(pxs.ravel(), pys.ravel()):
             pxo = px_off * DW[px_index]
             pyo = py_off * DW[py_index]


https://bitbucket.org/yt_analysis/yt/commits/f5dcb3fc9ba6/
Changeset:   f5dcb3fc9ba6
Branch:      yt
User:        bwoshea
Date:        2014-08-26 14:36:58
Summary:     Merged yt_analysis/yt into yt
Affected #:  1 file

diff -r 808f03b664e2b518da97e89e90556c4ae0951691 -r f5dcb3fc9ba69107d8141ce4de5a5dc7b193cc12 yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -442,7 +442,7 @@
                         if child_mask[i, j, k] == 1 or this_level == 1:
                             mask[i, j, k] = self.select_cell(pos, dds)
                             total += mask[i, j, k]
-                        pos[2] += dds[1]
+                        pos[2] += dds[2]
                     pos[1] += dds[1]
                 pos[0] += dds[0]
         if total == 0: return None


https://bitbucket.org/yt_analysis/yt/commits/6dd1a9ee0419/
Changeset:   6dd1a9ee0419
Branch:      yt
User:        ngoldbaum
Date:        2014-08-26 19:00:42
Summary:     Merged in bwoshea/yt-3-bwo (pull request #1165)

Update to annotate_grids to overlay girds in a predictable order
Affected #:  1 file

diff -r ba24b263607d3dcf750cdc974f99151480325bfa -r 6dd1a9ee0419927d3bebfa0f8bdb9c2816fd95d7 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -432,6 +432,12 @@
         min_level = self.min_level or 0
         max_level = self.max_level or levels.max()
 
+        # sorts the three arrays in order of ascending level - this makes images look nicer
+        new_indices = np.argsort(levels)
+        levels = levels[new_indices]
+        GLE = GLE[new_indices]
+        GRE = GRE[new_indices]
+        
         for px_off, py_off in zip(pxs.ravel(), pys.ravel()):
             pxo = px_off * DW[px_index]
             pyo = py_off * DW[py_index]

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