[yt-svn] commit/yt: MatthewTurk: Fixing pannable map for, among other things, FLASH data
Bitbucket
commits-noreply at bitbucket.org
Thu Jan 26 11:45:10 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2a665b145099/
changeset: 2a665b145099
branch: yt
user: MatthewTurk
date: 2012-01-26 20:45:03
summary: Fixing pannable map for, among other things, FLASH data
affected #: 1 file
diff -r da10a8f3485e612645438168364dfe87543b8ac5 -r 2a665b145099bb22f1655490c692be9c1d3339f6 yt/gui/reason/pannable_map.py
--- a/yt/gui/reason/pannable_map.py
+++ b/yt/gui/reason/pannable_map.py
@@ -63,10 +63,10 @@
#@exc_writeout
def map(self, L, x, y):
- dd = 1.0 / (2.0**(int(L)-1))
+ dd = 1.0 / (2.0**(int(L)))
relx = int(x) * dd
rely = int(y) * dd
- DW = (self.pf.domain_left_edge + self.pf.domain_right_edge)/2.0
+ DW = (self.pf.domain_right_edge - self.pf.domain_left_edge)
xl = self.pf.domain_left_edge[0] + relx * DW[0]
yl = self.pf.domain_left_edge[1] + rely * DW[1]
xr = xl + dd*DW[0]
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