We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4d2ac commit 305999dCopy full SHA for 305999d
pykonal/pykonal.pyx
@@ -268,7 +268,9 @@ class EikonalSolver(object):
268
):
269
idx = tuple(idx)
270
u = uui(pgrid_new[idx])
271
- if not np.isnan(u):
+ # The np.isinf(u) check is a hack.
272
+ # The interpolator should never return np.inf.
273
+ if not np.isnan(u) and not np.isinf(u):
274
self.uu[idx] = u
275
self.is_far[idx] = False
276
self.is_alive[idx] = set_alive
0 commit comments