<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/d923aa143295/">https://bitbucket.org/yt_analysis/yt/commits/d923aa143295/</a> Changeset:   d923aa143295 Branch:      yt User:        atmyers Date:        2016-03-30 22:16:08+00:00 Summary:     Merged in ngoldbaum/yt (pull request #2094)</p>
<p>Handle KeyboardInterrupt in volume rendering cython loop Affected #:  1 file</p>
<p>diff -r e376760e7ac426c9e47ff916655e60bc7ec78a2d -r d923aa143295f0ef48f3e9c87e70b1f21b82d530 yt/utilities/lib/grid_traversal.pyx --- a/yt/utilities/lib/grid_traversal.pyx +++ b/yt/utilities/lib/grid_traversal.pyx @@ -31,6 +31,8 @@</p>
<pre>from cython.parallel import prange, parallel, threadid
from vec3_ops cimport dot, subtract, L2_norm, fma
</pre>
<p>+from cpython.exc cimport PyErr_CheckSignals +</p>
<pre>DEF Nch = 4

cdef class PartitionedGrid:</pre>
<p>@@ -458,6 +460,7 @@</p>
<pre>size = nx * ny
cdef ImageAccumulator *idata
cdef np.float64_t width[3]</pre>
<p>+        cdef int chunksize = 100</p>
<pre>         for i in range(3):
width[i] = self.width[i]
         with nogil, parallel(num_threads = num_threads):</pre>
<p>@@ -465,7 +468,7 @@</p>
<pre>idata.supp_data = self.supp_data
v_pos = <np.float64_t *> malloc(3 * sizeof(np.float64_t))
v_dir = <np.float64_t *> malloc(3 * sizeof(np.float64_t))</pre>
<ul><li><p>for j in prange(size, schedule="static", chunksize=100):</p></li></ul>
<p>+            for j in prange(size, schedule="static", chunksize=chunksize):</p>
<pre>vj = j % ny
vi = (j - vj) / ny + iter[0]
vj = vj + iter[2]</pre>
<p>@@ -476,6 +479,9 @@</p>
<pre>max_t = fclip(im.zbuffer[vi, vj], 0.0, 1.0)
walk_volume(vc, v_pos, v_dir, self.sampler,
            (<void *> idata), NULL, max_t)</pre>
<p>+                if (j % (10*chunksize)) == 0: +                    with gil: +                        PyErr_CheckSignals()</p>
<pre>    for i in range(Nch):
        im.image[vi, vj, i] = idata.rgba[i]
free(idata)</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27D8UCnkJe76zm9gAfbpdimaMZGWojMRNymEWyvifVFuBRUJd7isWoX5P2E-2F3KUFhQRcpYWLR-2BXYgxLxrfEwVOFQEJALQ3DJXMOEYzzhrljde2oA0ZZUcjkk2aXZcHRhSJYaXwmI2tPk3hU6nIBkBC7yeXpS4AlbSq8oKmsflGrpwQEHNxydu09vyr33ut5PG9g-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>