From 04ad5a3b131819bf626a0319d845586d36087fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Jaquier?= <72930209+AurelienJaquier@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:20:45 +0200 Subject: [PATCH] Impedance should return an array, not a float (#403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jaquier Aurélien Tristan --- efel/pyfeatures/pyfeatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efel/pyfeatures/pyfeatures.py b/efel/pyfeatures/pyfeatures.py index 83738e85..dc2a6e50 100644 --- a/efel/pyfeatures/pyfeatures.py +++ b/efel/pyfeatures/pyfeatures.py @@ -171,7 +171,7 @@ def impedance(): )[0] smooth_Z = gaussian_filter1d(norm_Z[select_idxs], 10) ind_max = np.argmax(smooth_Z) - return freq[ind_max] + return np.array([freq[ind_max]]) else: return None else: