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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon May 5 19:12:30 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/c57198ca259a/
Changeset:   c57198ca259a
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-05-06 04:12:22
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #875)

Adding a compatibility layer for the _frb -> frb transition.
Affected #:  1 file

diff -r 2baafb904700f2eaccb6af2f6d545db6c2a286ca -r c57198ca259a9b6d9dd7dc8b5237f3d72df7f765 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -17,6 +17,7 @@
 import matplotlib
 import cStringIO
 import types
+import warnings
 
 from matplotlib.delaunay.triangulate import Triangulation as triang
 from matplotlib.mathtext import MathTextParser
@@ -646,6 +647,14 @@
         self._axes_unit_names = unit_name
         return self
 
+    @property
+    def _frb(self):
+        # Note we use SyntaxWarning because DeprecationWarning is not shown
+        # by default
+        warnings.warn("_frb is deprecated, use frb instead.",
+                      SyntaxWarning)
+        return self.frb
+
 class PWViewerMPL(PlotWindow):
     """Viewer using matplotlib as a backend via the WindowPlotMPL.

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