[yt-svn] commit/yt-3.0: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Tue Nov 27 02:36:42 PST 2012
2 new commits in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/changeset/df11c944851c/
changeset: df11c944851c
branch: yt-3.0
user: MatthewTurk
date: 2012-11-27 11:36:05
summary: Fixing projections, which were previously using just the x-spec for the y/z coordinates.
affected #: 1 file
diff -r 57db505f0622e3f3de950413d8556293174aa461 -r df11c944851c229698721513fb2bb2f4b6fb61db yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -347,8 +347,8 @@
else:
w = np.ones(chunk.size, dtype="float64")
icoords = chunk.icoords
- i1 = icoords[:,0]
- i2 = icoords[:,1]
+ i1 = icoords[:,x_dict[self.axis]]
+ i2 = icoords[:,y_dict[self.axis]]
ilevel = chunk.ires
tree.add_chunk_to_tree(i1, i2, ilevel, v, w)
https://bitbucket.org/yt_analysis/yt-3.0/changeset/3246bedb07de/
changeset: 3246bedb07de
branch: yt-3.0
user: MatthewTurk
date: 2012-11-27 11:36:35
summary: Merge
affected #: 1 file
diff -r df11c944851c229698721513fb2bb2f4b6fb61db -r 3246bedb07deba008f77a7f1f247097950fab215 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1082,7 +1082,7 @@
_frb_generator = FixedResolutionBuffer
def __init__(self, pf, axis, fields, center='c', width=None, axes_unit=None,
- weight_field=None, max_level=None, origin='center-window', fontsize=15):
+ weight_field=None, origin='center-window', fontsize=15):
r"""Creates a projection plot from a parameter file
Given a pf object, an axis to project along, and a field name
@@ -1141,8 +1141,6 @@
the center of the plot window.
weight_field : string
The name of the weighting field. Set to None for no weight.
- max_level: int
- The maximum level to project to.
fontsize : integer
The size of the fonts for the axis, colorbar, and tick labels.
@@ -1163,7 +1161,7 @@
(bounds, center, units) = GetWindowParameters(axis, center, width, pf)
if axes_unit is None and units != ('1', '1'):
axes_unit = units
- proj = pf.h.proj(fields, axis, weight_field=weight_field,max_level=max_level,center=center)
+ proj = pf.h.proj(fields, axis, weight_field=weight_field, center=center)
PWViewerMPL.__init__(self,proj,bounds,origin=origin)
self.set_axes_unit(axes_unit)
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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