[yt-svn] commit/yt: MatthewTurk: Really, we want to sum this up, not just set it.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 23 11:57:43 PDT 2016


1 new commit in yt:

http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOUisCQzmtM-2Fe-2Fn5iBt0yYdbiV-2FjjMKXUWGPhMktG813qI-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27AHrcxgPUY2cpQqL2k055C8HjMYlrkJAF3T3FZOByb4atljXU7fCYAFbsSmpyPDX1RhwzeNi1tBsEu09Xk-2BI1y8ImM5woXzwy0dxKFp8JFXnFLWgpPPLxg3mzQAKnvwv-2BDomLOtH7hLfyVCy3SM7Qnb5JEDucyhFUK7-2B3xYSsuKtiH-2Bfn4Sr2Xs2NMF4FBkRW0-3D
Changeset:   1db948002e45
Branch:      yt
User:        MatthewTurk
Date:        2016-03-23 18:11:42+00:00
Summary:     Really, we want to sum this up, not just set it.
Affected #:  1 file

diff -r de823c10fed9f0b5fd4acf0512c45fc7d9cc491a -r 1db948002e4548dd500f04ccbad4f0a7cff3d287 yt/utilities/lib/pixelization_routines.pyx
--- a/yt/utilities/lib/pixelization_routines.pyx
+++ b/yt/utilities/lib/pixelization_routines.pyx
@@ -261,7 +261,7 @@
                        fabs(ysp - cy) * 0.95 > dysp or \
                        fabs(zsp - cz) * 0.95 > dzsp:
                         continue
-                    mask[i, j] = 1
+                    mask[i, j] += 1
                     my_array[i, j] += dsp
     my_array /= mask
     return my_array

Repository URL: http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BI0v8SbQq-2B8-2FZaaHaJT85r_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27AHrcxgPUY2cpQqL2k055C8HjMYlrkJAF3T3FZOByb4auwDlWoz406zR-2B8appeYZpxYOPCD4-2BgmPbm-2BaHgkePiIpo0xr5uZ5GxTrisB1GWlPOa6LsdCCQKJYPSW5FJMac6hBpm69cUm9G3EJ8TQbD0yMS787CYIJGP9tPVmmPOgDluj92w9TjlFDBSE0XiGB-2Bs-3D

--

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/20160323/ac9ed029/attachment.htm>


More information about the yt-svn mailing list