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.
2 parents 94ceaee + dec7b96 commit 0eba3a8Copy full SHA for 0eba3a8
stratify/_vinterp.pyx
@@ -539,7 +539,7 @@ cdef class _Interpolation(object):
539
z_src = np.array(z_src, dtype=np.float64)
540
fz_src = np.array(fz_src)
541
#: The result data dtype.
542
- if np.issubdtype(fz_src.dtype, int):
+ if np.issubdtype(fz_src.dtype, np.signedinteger):
543
self._target_dtype = np.dtype('f8')
544
else:
545
self._target_dtype = fz_src.dtype
@@ -633,7 +633,7 @@ cdef class _Interpolation(object):
633
'the interpolation axis.')
634
z_src_indexer = [0] * z_src.ndim
635
z_src_indexer[zp_axis] = slice(0, 2)
636
- first_two = z_src[z_src_indexer]
+ first_two = z_src[tuple(z_src_indexer)]
637
rising = first_two[0] <= first_two[1]
638
639
self.rising = bool(rising)
0 commit comments