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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Mar 4 13:43:35 PST 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/169c6b14377e/
Changeset:   169c6b14377e
Branch:      yt
User:        ngoldbaum
Date:        2016-03-04 21:43:26+00:00
Summary:     Merged in jisuoqing/yt (pull request #2019)

[bugfix] Fix array size mismatch error when opaque object is drawn
Affected #:  1 file

diff -r 8b3e503243585e2937ccd465737e8b7fc2a1efc4 -r 169c6b14377e4e691657a18547322d3d0c87aae3 yt/visualization/volume_rendering/utils.py
--- a/yt/visualization/volume_rendering/utils.py
+++ b/yt/visualization/volume_rendering/utils.py
@@ -51,7 +51,8 @@
     kwargs = {'lens_type': params['lens_type']}
     if render_source.zbuffer is not None:
         kwargs['zbuffer'] = render_source.zbuffer.z
-        args[4][:] = render_source.zbuffer.rgba[:]
+        args[4][:] = np.reshape(render_source.zbuffer.rgba[:], \
+            (camera.resolution[0], camera.resolution[1], 4))
     else:
         kwargs['zbuffer'] = np.ones(params['image'].shape[:2], "float64")

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