aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src/MER.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-29 18:50:41 +0200
committerandreas128 <Andreas>2017-09-29 18:50:41 +0200
commit5e3ca125bfc56d31b9c9ef819eab9171b73b7333 (patch)
tree297d400f754742faf6bfc4fc7eff9858163c845c /dpd/src/MER.py
parent64e0193824262e93e7cd67bb8c3af68d278f990c (diff)
downloaddabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.gz
dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.bz2
dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.zip
Cleanup
Diffstat (limited to 'dpd/src/MER.py')
-rw-r--r--dpd/src/MER.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/dpd/src/MER.py b/dpd/src/MER.py
index 69c94f9..0f169a7 100644
--- a/dpd/src/MER.py
+++ b/dpd/src/MER.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# Modulation Error Rate
+# DPD Calculation Engine, Modulation Error Rate.
#
# http://www.opendigitalradio.org
# Licence: The MIT License, see notice at the end of this file
@@ -13,7 +13,6 @@ try:
except:
logging_path = "/tmp/"
-import src.Const
import numpy as np
import matplotlib
matplotlib.use('agg')
@@ -72,8 +71,8 @@ class MER:
return x_mean, y_mean, U_RMS, U_ERR, MER
def calc_mer(self, tx, debug_name=""):
- assert tx.shape[0] == self.c.T_U,\
- "Wrong input length"
+ """Calculate MER for input signal from a symbol aligned signal."""
+ assert tx.shape[0] == self.c.T_U, "Wrong input length"
spectrum = self._calc_spectrum(tx)