Skip to content

Commit

Permalink
Use shorter aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome committed Jan 13, 2018
1 parent b80b44b commit 3e478f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librosa/util/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ def tiny(x):
x = np.asarray(x)

# Only floating types generate a tiny
if np.issubdtype(x.dtype, np.dtype(float).type) or np.issubdtype(x.dtype, np.dtype(complex).type):
if np.issubdtype(x.dtype, np.floating) or np.issubdtype(x.dtype, np.complexfloating):
dtype = x.dtype
else:
dtype = np.float32
Expand Down

0 comments on commit 3e478f4

Please sign in to comment.