aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python')
-rw-r--r--mpm/python/usrp_mpm/cores/tdc_sync.py5
1 files changed, 4 insertions, 1 deletions
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):
"""