[yt-svn] commit/yt: MatthewTurk: Search for ("gas", "density") explicitly. Fixes #835.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun May 4 20:13:25 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/6ad791b0d95a/
Changeset:   6ad791b0d95a
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-05-05 03:34:59
Summary:     Search for ("gas", "density") explicitly.  Fixes #835.
Affected #:  1 file

diff -r f58bc8d117c59ac9e7f1a5db1fea5201d41d025a -r 6ad791b0d95a48528a8b02c2f0eec41a0d2fbde0 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -143,7 +143,7 @@
 def get_sanitized_center(center, pf):
     if isinstance(center, basestring):
         if center.lower() == "m" or center.lower() == "max":
-            v, center = pf.h.find_max("density")
+            v, center = pf.h.find_max(("gas", "density"))
             center = pf.arr(center, 'code_length')
         elif center.lower() == "c" or center.lower() == "center":
             center = (pf.domain_left_edge + pf.domain_right_edge) / 2

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