[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2435)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Dec 6 08:26:15 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/7da3033837bc/
Changeset: 7da3033837bc
Branch: yt
User: xarthisius
Date: 2016-12-06 16:25:49+00:00
Summary: Merged in ngoldbaum/yt (pull request #2435)
Add call to signal handler in core SPH smoothing loop
Affected #: 2 files
diff -r 0207316331dd33da804a692a6c8de656b40173cb -r 7da3033837bc6c0e13a5b0e198b6c578a94ee170 yt/geometry/particle_smooth.pyx
--- a/yt/geometry/particle_smooth.pyx
+++ b/yt/geometry/particle_smooth.pyx
@@ -16,9 +16,11 @@
cimport numpy as np
import numpy as np
+cimport cython
+
+from cpython.exc cimport PyErr_CheckSignals
from libc.stdlib cimport malloc, free, realloc
from libc.string cimport memmove
-cimport cython
from libc.math cimport sqrt, fabs, sin, cos
from oct_container cimport \
@@ -208,6 +210,8 @@
cdef DistanceQueue dist_queue = DistanceQueue(self.maxn)
dist_queue._setup(self.DW, self.periodicity)
for i in range(oct_positions.shape[0]):
+ if (i % 10000) == 0:
+ PyErr_CheckSignals()
for j in range(3):
pos[j] = oct_positions[i, j]
oct = mesh_octree.get(pos, &moi)
diff -r 0207316331dd33da804a692a6c8de656b40173cb -r 7da3033837bc6c0e13a5b0e198b6c578a94ee170 yt/utilities/lib/grid_traversal.pyx
--- a/yt/utilities/lib/grid_traversal.pyx
+++ b/yt/utilities/lib/grid_traversal.pyx
@@ -27,7 +27,6 @@
from fixed_interpolator cimport *
from cython.parallel import prange, parallel, threadid
-from cpython.exc cimport PyErr_CheckSignals
from .image_samplers cimport \
ImageSampler, \
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