[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon May 5 19:12:28 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/0311bc807f78/
Changeset: 0311bc807f78
Branch: yt-3.0
User: ngoldbaum
Date: 2014-05-04 23:55:50
Summary: Adding a compatibility layer for the _frb -> frb transition.
Affected #: 1 file
diff -r f58bc8d117c59ac9e7f1a5db1fea5201d41d025a -r 0311bc807f78a7e0e0e3c789f2ddd0b1491ffa2b 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
@@ -641,6 +642,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.
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