From 171f25c98f31d692539d673aa723fa401665bfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Mon, 18 Mar 2024 09:45:20 +0100 Subject: [PATCH] ISI_CV: return None when None --- efel/pyfeatures/isi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/efel/pyfeatures/isi.py b/efel/pyfeatures/isi.py index f90f0b42..e5ce5f5e 100644 --- a/efel/pyfeatures/isi.py +++ b/efel/pyfeatures/isi.py @@ -58,6 +58,8 @@ def ISI_CV() -> np.ndarray | None: isi_values = isi_values[1:] result = __ISI_CV(isi_values) + if result is None: + return None return np.array([result])