From d317e5765edb3e9460e9debf74ac2695ce2aa63e Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 25 Oct 2017 13:52:30 -0400 Subject: [PATCH] ENH: Call np.issubdtype with np.floating Numpy is deprecating this usage (see numpy/numpy#9505). --- h5py/h5t.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx index cc2344e13..51c496703 100644 --- a/h5py/h5t.pyx +++ b/h5py/h5t.pyx @@ -224,7 +224,7 @@ cdef dict _sign_map = { H5T_SGN_NONE: 'u', H5T_SGN_2: 'i' } # Available floating point types available_ftypes = dict() for ftype in np.typeDict.values(): - if np.issubdtype(ftype, float): + if np.issubdtype(ftype, np.floating): available_ftypes[np.dtype(ftype).itemsize] = np.finfo(ftype) # === General datatype operations =============================================