[yt-svn] commit/yt: MatthewTurk: This restores the old behavior of cam.show() not having an integrated alpha channel.
Bitbucket
commits-noreply at bitbucket.org
Wed Feb 13 12:26:30 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/eafea0fd3d56/
changeset: eafea0fd3d56
branch: yt
user: MatthewTurk
date: 2013-02-13 21:25:49
summary: This restores the old behavior of cam.show() not having an integrated alpha channel.
affected #: 1 file
diff -r f65d7380144e0e9739582779b1acc72b92622edf -r eafea0fd3d56cc610534e0bf03bcefbe44bacd40 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -683,7 +683,7 @@
"""
if "__IPYTHON__" in dir(__builtin__):
from IPython.core.displaypub import publish_display_data
- image = self.snapshot()
+ image = self.snapshot()[:,:,:3]
if clip_ratio is not None: clip_ratio *= image.std()
data = write_bitmap(image, None, clip_ratio)
publish_display_data(
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