From 5e3ca125bfc56d31b9c9ef819eab9171b73b7333 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 29 Sep 2017 18:50:41 +0200 Subject: Cleanup --- dpd/src/MER.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dpd/src/MER.py') 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) -- cgit v1.2.3