From 1963778c9e8412ef4280fbd012ec14d590f58ca0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 6 Jul 2020 15:29:34 +0200 Subject: remove unused mean_or_none function --- lib/dfatool.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/dfatool.py b/lib/dfatool.py index 47ce24e..e8b5090 100644 --- a/lib/dfatool.py +++ b/lib/dfatool.py @@ -27,17 +27,6 @@ except ImportError: arg_support_enabled = True -def mean_or_none(arr): - """ - Compute mean of NumPy array `arr`, return -1 if empty. - - :param arr: 1-Dimensional NumPy array - """ - if len(arr): - return np.mean(arr) - return -1 - - class KeysightCSV: """Simple loader for Keysight CSV data, as exported by the windows software.""" -- cgit v1.2.3