[yt-svn] commit/yt: MatthewTurk: This should fix the failing contour plot test.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jan 7 09:43:45 PST 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/36dc8027678f/
Changeset:   36dc8027678f
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-01-07 18:19:34
Summary:     This should fix the failing contour plot test.
Affected #:  1 file

diff -r 009bbf295f0a1dcb3a48ecd51c848294fd815992 -r 36dc8027678fefc9d97995821f57585dc2f0fda3 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -315,7 +315,8 @@
             zi = plot.frb[self.field][::self.factor,::self.factor].transpose()
         
         if self.take_log is None:
-            self.take_log = plot.pf.field_info[self.field].take_log
+            field = data._determine_fields([self.field])[0]
+            self.take_log = plot.pf._get_field_info(*field).take_log
 
         if self.take_log: zi=np.log10(zi)

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