aboutsummaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-25 12:20:09 +0200
committerandreas128 <Andreas>2017-09-25 12:20:09 +0200
commitdf1173a69c6cee61bd76d0f2c6331508e81b453c (patch)
treeba7076e1bdd44080d7811c13a9296bd3281202cd /dpd
parentf560e40a6af21d6f3026e8b8319476f27b3153e6 (diff)
downloaddabmod-df1173a69c6cee61bd76d0f2c6331508e81b453c.tar.gz
dabmod-df1173a69c6cee61bd76d0f2c6331508e81b453c.tar.bz2
dabmod-df1173a69c6cee61bd76d0f2c6331508e81b453c.zip
Change filename of MER plot
Diffstat (limited to 'dpd')
-rwxr-xr-xdpd/main.py4
-rw-r--r--dpd/src/MER.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/dpd/main.py b/dpd/main.py
index be496b6..c9bf0ba 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -205,8 +205,8 @@ while i < num_iter:
path = adapt.dump()
off = SA.calc_offset(txframe_aligned)
- tx_mer = MER.calc_mer(txframe_aligned[off:off+c.T_U], debug=True)
- rx_mer = MER.calc_mer(rxframe_aligned[off:off+c.T_U], debug=True)
+ tx_mer = MER.calc_mer(txframe_aligned[off:off+c.T_U], debug=True, debug_name="TX")
+ rx_mer = MER.calc_mer(rxframe_aligned[off:off+c.T_U], debug=True, deubg_name="RX")
mse = np.mean(np.abs((txframe_aligned - rxframe_aligned)**2))
tx_gain = adapt.get_txgain()
rx_gain = adapt.get_rxgain()
diff --git a/dpd/src/MER.py b/dpd/src/MER.py
index 9c72dfb..7aea38f 100644
--- a/dpd/src/MER.py
+++ b/dpd/src/MER.py
@@ -69,7 +69,7 @@ class MER:
return x_mean, y_mean, U_RMS, U_ERR, MER
- def calc_mer(self, tx, debug=False):
+ def calc_mer(self, tx, debug=False, debug_name=""):
assert tx.shape[0] == self.c.T_U,\
"Wrong input length"
@@ -77,7 +77,7 @@ class MER:
if debug:
dt = datetime.datetime.now().isoformat()
- fig_path = logging_path + "/" + dt + "_MER.svg"
+ fig_path = logging_path + "/" + dt + "_MER" + debug_name + ".svg"
MERs = []
for i, (x, y) in enumerate(self._split_in_carrier(