From 3e478f4c90951ec576ef3ab078abe8b76ff0619e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Sat, 13 Jan 2018 14:17:03 +0100 Subject: [PATCH] Use shorter aliases --- librosa/util/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librosa/util/utils.py b/librosa/util/utils.py index 56df8d5015..b4b4249bbf 100644 --- a/librosa/util/utils.py +++ b/librosa/util/utils.py @@ -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