[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed May 8 10:34:42 PDT 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/b75588a6221f/
Changeset: b75588a6221f
Branch: yt
User: samskillman
Date: 2013-05-08 18:57:49
Summary: Fixing reason plots, as reported by Bryan in irc.
Affected #: 2 files
diff -r 5b6b482fd29eac3ed397588d25ddb4ab0d8b7385 -r b75588a6221f1f934e89d77a300271810f599dbe yt/gui/reason/widget_store.py
--- a/yt/gui/reason/widget_store.py
+++ b/yt/gui/reason/widget_store.py
@@ -76,7 +76,8 @@
sl = pf.h.slice(axis, coord, center = center, periodic = True)
xax, yax = x_dict[axis], y_dict[axis]
DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
- pw = PWViewerExtJS(sl, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]), setup = False)
+ pw = PWViewerExtJS(sl, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]),
+ setup = False, plot_type='SlicePlot')
pw.set_current_field(field)
field_list = list(set(pf.h.field_list + pf.h.derived_field_list))
field_list = [dict(text = f) for f in sorted(field_list)]
@@ -96,7 +97,7 @@
xax, yax = x_dict[axis], y_dict[axis]
DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
pw = PWViewerExtJS(proj, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]),
- setup = False)
+ setup = False, plot_type='ProjectionPlot')
pw.set_current_field(field)
field_list = list(set(pf.h.field_list + pf.h.derived_field_list))
field_list = [dict(text = f) for f in sorted(field_list)]
diff -r 5b6b482fd29eac3ed397588d25ddb4ab0d8b7385 -r b75588a6221f1f934e89d77a300271810f599dbe yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -551,8 +551,11 @@
"""A viewer for PlotWindows.
"""
+ _plot_type = None
def __init__(self, *args,**kwargs):
setup = kwargs.pop("setup", True)
+ if self._plot_type is None:
+ self._plot_type = kwargs.pop("plot_type")
PlotWindow.__init__(self, *args,**kwargs)
self._axes_unit_names = None
self._callbacks = []
https://bitbucket.org/yt_analysis/yt/commits/ca608f4f08cc/
Changeset: ca608f4f08cc
Branch: yt
User: MatthewTurk
Date: 2013-05-08 19:34:36
Summary: Merged in samskillman/yt (pull request #493)
Fixing reason plots, as reported by Bryan in irc.
Affected #: 2 files
diff -r 9b5c690e791ab9195415188482b532fbab758208 -r ca608f4f08cc48dc1170295aacf20abbcd4b5541 yt/gui/reason/widget_store.py
--- a/yt/gui/reason/widget_store.py
+++ b/yt/gui/reason/widget_store.py
@@ -76,7 +76,8 @@
sl = pf.h.slice(axis, coord, center = center, periodic = True)
xax, yax = x_dict[axis], y_dict[axis]
DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
- pw = PWViewerExtJS(sl, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]), setup = False)
+ pw = PWViewerExtJS(sl, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]),
+ setup = False, plot_type='SlicePlot')
pw.set_current_field(field)
field_list = list(set(pf.h.field_list + pf.h.derived_field_list))
field_list = [dict(text = f) for f in sorted(field_list)]
@@ -96,7 +97,7 @@
xax, yax = x_dict[axis], y_dict[axis]
DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
pw = PWViewerExtJS(proj, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]),
- setup = False)
+ setup = False, plot_type='ProjectionPlot')
pw.set_current_field(field)
field_list = list(set(pf.h.field_list + pf.h.derived_field_list))
field_list = [dict(text = f) for f in sorted(field_list)]
diff -r 9b5c690e791ab9195415188482b532fbab758208 -r ca608f4f08cc48dc1170295aacf20abbcd4b5541 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -551,8 +551,11 @@
"""A viewer for PlotWindows.
"""
+ _plot_type = None
def __init__(self, *args,**kwargs):
setup = kwargs.pop("setup", True)
+ if self._plot_type is None:
+ self._plot_type = kwargs.pop("plot_type")
PlotWindow.__init__(self, *args,**kwargs)
self._axes_unit_names = None
self._callbacks = []
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