From dbfc85e0977857382a726e24bafe8a7f2cadef17 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 31 May 2017 18:25:15 -0700 Subject: mpm: Remove numpy dependency --- mpm/python/usrp_mpm/cores/tdc_sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mpm/python') diff --git a/mpm/python/usrp_mpm/cores/tdc_sync.py b/mpm/python/usrp_mpm/cores/tdc_sync.py index 6d680d32f..d85dbadde 100644 --- a/mpm/python/usrp_mpm/cores/tdc_sync.py +++ b/mpm/python/usrp_mpm/cores/tdc_sync.py @@ -18,7 +18,10 @@ TDC clock synchronization """ import time -from numpy import mean + +def mean(vals): + " Calculate arithmetic mean of vals " + return float(sum(vals)) / max(len(vals), 1) def rsp_table(ref_clk_freq, radio_clk_freq): """ -- cgit v1.2.3