[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Thu Aug 2 11:08:21 PDT 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/494dd6627f57/
changeset: 494dd6627f57
branch: yt
user: MatthewTurk
date: 2012-08-02 12:04:59
summary: Off-axis slices should be *centered* at the center, but the bounds will be with
respect to 0. So bounds should be calculated that way, rather than absolutely.
affected #: 1 file
diff -r d28068beb5aceb01702502ecf7e86ecd0afbf0eb -r 494dd6627f57c3b9896c5b32d37adc7930610f6f yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -179,8 +179,7 @@
center = na.dot(mat,center)
width = width/pf.domain_width.min()
- bounds = [center[0]-width[0]/2,center[0]+width[0]/2,
- center[1]-width[1]/2,center[1]+width[1]/2]
+ bounds = [-width[0]/2, width[0]/2, -width[1]/2, width[1]/2]
return (bounds,center)
https://bitbucket.org/yt_analysis/yt/changeset/ef282894f4d9/
changeset: ef282894f4d9
branch: yt
user: MatthewTurk
date: 2012-08-02 12:21:52
summary: This fixes a bug that I introduced where slices and cutting planes had no units
displayed.
affected #: 1 file
diff -r 494dd6627f57c3b9896c5b32d37adc7930610f6f -r ef282894f4d981379c19f3728af891d5626cd520 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -550,7 +550,7 @@
pf = self.pf
if ds._type_name in ("slice", "cutting"):
units = pf.field_info[field].get_units()
- if ds._type_name == "proj" and (ds.weight_field is not None or
+ elif ds._type_name == "proj" and (ds.weight_field is not None or
ds.proj_style == "mip"):
units = pf.field_info[field].get_units()
elif ds._type_name == "proj":
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