[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 10 06:25:12 PDT 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/8df2a87c5098/
Changeset: 8df2a87c5098
Branch: yt
User: ngoldbaum
Date: 2013-07-08 22:42:17
Summary: Fixing errors discovered via pyflakes.
Affected #: 1 file
diff -r 213d534593fb056814ce918c902e4fc3ea3360e9 -r 8df2a87c509837f8573fcffe776955614b2c2856 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -37,11 +37,9 @@
from functools import wraps
from numbers import Number
-from ._mpl_imports import \
- FigureCanvasAgg, FigureCanvasPdf, FigureCanvasPS
+from ._mpl_imports import FigureCanvasAgg
from .color_maps import yt_colormaps, is_colormap
-from .image_writer import \
- write_image, apply_colormap
+from .image_writer import apply_colormap
from .fixed_resolution import \
FixedResolutionBuffer, \
ObliqueFixedResolutionBuffer, \
@@ -52,21 +50,20 @@
from .base_plot_types import ImagePlotMPL
from yt.utilities.delaunay.triangulate import Triangulation as triang
-from yt.config import ytcfg
from yt.funcs import \
mylog, defaultdict, iterable, ensure_list, \
fix_axis, get_image_suffix
from yt.utilities.lib import write_png_to_string
from yt.utilities.definitions import \
- x_dict, x_names, \
- y_dict, y_names, \
+ x_dict, y_dict, \
axis_names, axis_labels, \
formatted_length_unit_names
from yt.utilities.math_utils import \
ortho_find
-from yt.utilities.parallel_tools.parallel_analysis_interface import \
- GroupOwnership
-from yt.utilities.exceptions import YTUnitNotRecognized, YTInvalidWidthError
+from yt.utilities.exceptions import \
+ YTUnitNotRecognized, YTInvalidWidthError, YTCannotParseUnitDisplayName, \
+ YTNotInsideNotebook
+
from yt.data_objects.time_series import \
TimeSeriesData
@@ -539,12 +536,6 @@
self.center = new_center
self.set_window(self.bounds)
- @property
- def width(self):
- Wx = self.xlim[1] - self.xlim[0]
- Wy = self.ylim[1] - self.ylim[0]
- return (Wx, Wy)
-
@invalidate_data
def set_antialias(self,aa):
self.antialias = aa
@@ -839,10 +830,6 @@
return xc, yc
def _setup_plots(self):
- if self._current_field is not None:
- fields = [self._current_field]
- else:
- fields = self._frb.keys()
self._colorbar_valid = True
for f in self.fields:
axis_index = self.data_source.axis
@@ -1087,7 +1074,6 @@
# IPython v0.14+
from IPython.core.display import display
for k, v in sorted(self.plots.iteritems()):
- canvas = FigureCanvasAgg(v.figure)
display(v.figure)
def show(self):
https://bitbucket.org/yt_analysis/yt/commits/577bb3ce6fc3/
Changeset: 577bb3ce6fc3
Branch: yt
User: MatthewTurk
Date: 2013-07-10 15:25:02
Summary: Merged in ngoldbaum/yt (pull request #549)
Fixing errors discovered via pyflakes.
Affected #: 1 file
diff -r 0f59ef0d7dc696a4c8fdab557eb544ca87942b6c -r 577bb3ce6fc3e6d71130be84d03f46201f8cac7b yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -37,11 +37,9 @@
from functools import wraps
from numbers import Number
-from ._mpl_imports import \
- FigureCanvasAgg, FigureCanvasPdf, FigureCanvasPS
+from ._mpl_imports import FigureCanvasAgg
from .color_maps import yt_colormaps, is_colormap
-from .image_writer import \
- write_image, apply_colormap
+from .image_writer import apply_colormap
from .fixed_resolution import \
FixedResolutionBuffer, \
ObliqueFixedResolutionBuffer, \
@@ -52,21 +50,20 @@
from .base_plot_types import ImagePlotMPL
from yt.utilities.delaunay.triangulate import Triangulation as triang
-from yt.config import ytcfg
from yt.funcs import \
mylog, defaultdict, iterable, ensure_list, \
fix_axis, get_image_suffix
from yt.utilities.lib import write_png_to_string
from yt.utilities.definitions import \
- x_dict, x_names, \
- y_dict, y_names, \
+ x_dict, y_dict, \
axis_names, axis_labels, \
formatted_length_unit_names
from yt.utilities.math_utils import \
ortho_find
-from yt.utilities.parallel_tools.parallel_analysis_interface import \
- GroupOwnership
-from yt.utilities.exceptions import YTUnitNotRecognized, YTInvalidWidthError
+from yt.utilities.exceptions import \
+ YTUnitNotRecognized, YTInvalidWidthError, YTCannotParseUnitDisplayName, \
+ YTNotInsideNotebook
+
from yt.data_objects.time_series import \
TimeSeriesData
@@ -539,12 +536,6 @@
self.center = new_center
self.set_window(self.bounds)
- @property
- def width(self):
- Wx = self.xlim[1] - self.xlim[0]
- Wy = self.ylim[1] - self.ylim[0]
- return (Wx, Wy)
-
@invalidate_data
def set_antialias(self,aa):
self.antialias = aa
@@ -839,10 +830,6 @@
return xc, yc
def _setup_plots(self):
- if self._current_field is not None:
- fields = [self._current_field]
- else:
- fields = self._frb.keys()
self._colorbar_valid = True
for f in self.fields:
axis_index = self.data_source.axis
@@ -1087,7 +1074,6 @@
# IPython v0.14+
from IPython.core.display import display
for k, v in sorted(self.plots.iteritems()):
- canvas = FigureCanvasAgg(v.figure)
display(v.figure)
def show(self):
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