[yt-svn] commit/yt: MatthewTurk: When there is no rotation, apply jitter to fix HEALpix camera as rays walk
Bitbucket
commits-noreply at bitbucket.org
Thu Aug 2 02:32:34 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/d28068beb5ac/
changeset: d28068beb5ac
branch: yt
user: MatthewTurk
date: 2012-08-02 11:32:04
summary: When there is no rotation, apply jitter to fix HEALpix camera as rays walk
along cell edges.
affected #: 1 file
diff -r 34d5336c01e5019173e31395e2a66fd7676cfa23 -r d28068beb5aceb01702502ecf7e86ecd0afbf0eb yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -1460,6 +1460,8 @@
vs2 = vs.copy()
for i in range(3):
vs[:,:,i] = (vs2 * rotation[:,i]).sum(axis=2)
+ else:
+ vs += 1e-8
positions = na.ones((nv, 1, 3), dtype='float64', order='C') * center
dx = min(g.dds.min() for g in pf.h.find_point(center)[0])
positions += inner_radius * dx * vs
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