From 09ec3688c8edefc545231774acfca238e8763884 Mon Sep 17 00:00:00 2001 From: wtq2255 Date: Tue, 23 Jan 2024 20:43:58 +0800 Subject: [PATCH] fix bug --- python/audioflux/utils/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/audioflux/utils/convert.py b/python/audioflux/utils/convert.py index 5dfbeb7..8b07e99 100644 --- a/python/audioflux/utils/convert.py +++ b/python/audioflux/utils/convert.py @@ -247,7 +247,7 @@ def temproal_db(X, base=18.): """ X = np.asarray(X, dtype=np.float32, order='C') if X.ndim != 1: - raise ValueError(f"X[ndim={x.ndim}] must be a 1D array") + raise ValueError(f"X[ndim={X.ndim}] must be a 1D array") fn = get_fft_lib()['util_temproal'] fn.argtypes = [