[yt-svn] commit/yt: atmyers: Merged in ngoldbaum/yt (pull request #2095)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 30 15:19:59 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/bd8a7c0ed718/
Changeset:   bd8a7c0ed718
Branch:      yt
User:        atmyers
Date:        2016-03-30 22:19:44+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2095)

Fix units issue in PerspectiveCamera.project_to_plane. Closes #1182
Affected #:  1 file

diff -r d923aa143295f0ef48f3e9c87e70b1f21b82d530 -r bd8a7c0ed718365c84f355f9b30a1a95bd77c98b yt/visualization/volume_rendering/lens.py
--- a/yt/visualization/volume_rendering/lens.py
+++ b/yt/visualization/volume_rendering/lens.py
@@ -277,8 +277,8 @@
         dz = np.dot(pos - position, camera.unit_vectors[2])
 
         # Transpose into image coords.
-        px = (res[0] * 0.5 + res[0] / camera.width[0].d * dx).astype('int')
-        py = (res[1] * 0.5 + res[1] / camera.width[1].d * dy).astype('int')
+        px = (res[0] * 0.5 + res[0] / width[0] * dx).astype('int64')
+        py = (res[1] * 0.5 + res[1] / width[1] * dy).astype('int64')
 
         return px, py, dz

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160330/5566f091/attachment.htm>


More information about the yt-svn mailing list