summaryrefslogtreecommitdiffstats
path: root/dpd/main.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-08 16:22:23 +0200
committerandreas128 <Andreas>2017-09-08 16:22:23 +0200
commit086348ab4d788f8453ca78fed4f3f837779c9916 (patch)
tree47232eda6c57ebeacfc190cbe8840b32a6d02dfa /dpd/main.py
parent691591cd7e14e4ed576675b178917f3ae7fe5863 (diff)
downloaddabmod-086348ab4d788f8453ca78fed4f3f837779c9916.tar.gz
dabmod-086348ab4d788f8453ca78fed4f3f837779c9916.tar.bz2
dabmod-086348ab4d788f8453ca78fed4f3f837779c9916.zip
Cleanup, Add MER logging to Model
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-xdpd/main.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/dpd/main.py b/dpd/main.py
index eef1eb8..03520f5 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -14,6 +14,9 @@ import datetime
import os
import time
+import matplotlib
+matplotlib.use('GTKAgg')
+
import logging
dt = datetime.datetime.now().isoformat()
@@ -61,7 +64,7 @@ parser.add_argument('--samplerate', default='8192000',
parser.add_argument('--coefs', default='poly.coef',
help='File with DPD coefficients, which will be read by ODR-DabMod',
required=False)
-parser.add_argument('--txgain', default=70,
+parser.add_argument('--txgain', default=74,
help='TX Gain',
required=False,
type=int)
@@ -104,9 +107,9 @@ meas = Measure.Measure(samplerate, port, num_req)
adapt = Adapt.Adapt(port_rc, coef_path)
coefs_am, coefs_pm = adapt.get_coefs()
if cli_args.load_poly:
- model = Model.Model(coefs_am, coefs_pm, plot=True)
+ model = Model.Model(c, SA, MER, coefs_am, coefs_pm, plot=True)
else:
- model = Model.Model([1.0, 0, 0, 0, 0], [0, 0, 0, 0, 0], plot=True)
+ model = Model.Model(c, SA, MER, [1.0, 0, 0, 0, 0], [0, 0, 0, 0, 0], plot=True)
adapt.set_coefs(model.coefs_am, model.coefs_pm)
adapt.set_digital_gain(digital_gain)
adapt.set_txgain(txgain)