[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt/yt-3.0 (pull request #930)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat Jun 7 00:41:24 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/3a44cc9a0cab/
Changeset:   3a44cc9a0cab
Branch:      yt-3.0
User:        xarthisius
Date:        2014-06-07 09:41:15
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #930)

Making dataset.find_min() and find_max() return the location as a YTArray.
Affected #:  1 file

diff -r 3d6f253ca3ec2e3b9f13f98984b72097d3135485 -r 3a44cc9a0cab2cadfdee6de18bf445936ec8cd7b yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -527,7 +527,7 @@
             source.quantities.max_location(field)
         mylog.info("Max Value is %0.5e at %0.16f %0.16f %0.16f",
               max_val, mx, my, mz)
-        return max_val, np.array([mx, my, mz], dtype="float64")
+        return max_val, self.arr([mx, my, mz], 'code_length', dtype="float64")
 
     def find_min(self, field):
         """
@@ -539,7 +539,7 @@
             source.quantities.min_location(field)
         mylog.info("Min Value is %0.5e at %0.16f %0.16f %0.16f",
               min_val, mx, my, mz)
-        return min_val, np.array([mx, my, mz], dtype="float64")
+        return min_val, self.arr([mx, my, mz], 'code_length', dtype="float64")
 
     # Now all the object related stuff
     def all_data(self, find_max=False):

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