Skip to content

Commit

Permalink
ENH: Call np.issubdtype with np.floating
Browse files Browse the repository at this point in the history
Numpy is deprecating this usage (see numpy/numpy#9505).
  • Loading branch information
effigies authored Oct 25, 2017
1 parent 309c474 commit d317e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5py/h5t.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =============================================
Expand Down

0 comments on commit d317e57

Please sign in to comment.