[yt-svn] commit/yt: MatthewTurk: Fixing a void * pointer and changing expl => exp inside the star rendering.

Bitbucket commits-noreply at bitbucket.org
Tue Oct 2 20:42:36 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/59154579b465/
changeset:   59154579b465
branch:      yt
user:        MatthewTurk
date:        2012-10-03 05:42:24
summary:     Fixing a void * pointer and changing expl => exp inside the star rendering.
affected #:  1 file

diff -r ac4b312b5d6fac59499a2b8bc5aa6cc3faabd0f2 -r 59154579b465a3bc1d01723d7b8680526d4b784d yt/utilities/lib/grid_traversal.pyx
--- a/yt/utilities/lib/grid_traversal.pyx
+++ b/yt/utilities/lib/grid_traversal.pyx
@@ -590,7 +590,7 @@
         cdef np.float64_t *pointer = <np.float64_t *> star_colors.data
         for i in range(pos_x.shape[0]):
             kdtree_utils.kd_insert3(self.tree,
-                pos_x[i], pos_y[i], pos_z[i], pointer + i*3)
+                pos_x[i], pos_y[i], pos_z[i], <void *> (pointer + i*3))
 
     def __dealloc__(self):
         kdtree_utils.kd_free(self.tree)
@@ -656,7 +656,7 @@
             gexp = (px - pos[0])*(px - pos[0]) \
                  + (py - pos[1])*(py - pos[1]) \
                  + (pz - pos[2])*(pz - pos[2])
-            gaussian = vri.star_coeff * expl(-gexp/vri.star_sigma_num)
+            gaussian = vri.star_coeff * exp(-gexp/vri.star_sigma_num)
             for j in range(3): im.rgba[j] += gaussian*dt*colors[j]
         for i in range(3):
             pos[i] += local_dds[i]

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