[yt-svn] commit/yt: atmyers: Fix a bug with array initialization in zbuffer array.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Apr 3 07:45:49 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/395a07dcd3a5/
Changeset: 395a07dcd3a5
Branch: yt
User: atmyers
Date: 2016-04-03 03:22:07+00:00
Summary: Fix a bug with array initialization in zbuffer array.
Affected #: 1 file
diff -r d0b73467db93927ae19868ebc814eaab239c2317 -r 395a07dcd3a54e1840f9ddab9a4b3ed49f780c28 yt/visualization/volume_rendering/zbuffer_array.py
--- a/yt/visualization/volume_rendering/zbuffer_array.py
+++ b/yt/visualization/volume_rendering/zbuffer_array.py
@@ -62,7 +62,7 @@
rgba += (other.rgba * (1.0 - f)[:, None, :])
else:
b = self.z > other.z
- rgba = np.empty(self.rgba.shape)
+ rgba = np.zeros(self.rgba.shape)
rgba[f] = self.rgba[f]
rgba[b] = other.rgba[b]
z = np.min([self.z, other.z], axis=0)
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/20160403/4e761faa/attachment.htm>
More information about the yt-svn
mailing list