aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-31 18:25:15 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commitdbfc85e0977857382a726e24bafe8a7f2cadef17 (patch)
treed87978d716e1ede58d7afd70aaf646f8cc22d781 /mpm/python
parent2bd564ca225cbf1d02eb5025315bb67fe458ba00 (diff)
downloaduhd-dbfc85e0977857382a726e24bafe8a7f2cadef17.tar.gz
uhd-dbfc85e0977857382a726e24bafe8a7f2cadef17.tar.bz2
uhd-dbfc85e0977857382a726e24bafe8a7f2cadef17.zip
mpm: Remove numpy dependency
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):
"""