[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Mar 4 13:43:38 PST 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/73678c5af560/
Changeset: 73678c5af560
Branch: yt
User: jisuoqing
Date: 2016-03-04 19:57:23+00:00
Summary: Fix array mismatch error when opaque object is drawn
Affected #: 1 file
diff -r 8bb44733b706b98bcab4d691ab4bc207e6424a12 -r 73678c5af560ea6cd2c8c6a23e043dc3fb6078ef 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")
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