aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/apply_adapt_dumps.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-27 12:49:04 +0200
committerandreas128 <Andreas>2017-09-27 12:49:04 +0200
commit02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d (patch)
treec49c05edc82af242de4b07ad97a9d3307457f072 /dpd/apply_adapt_dumps.py
parent38e4b3a35d4265844641d4527d8952080c0d0d79 (diff)
downloaddabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.tar.gz
dabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.tar.bz2
dabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.zip
Move consts to Const.py; Cleanup
Diffstat (limited to 'dpd/apply_adapt_dumps.py')
-rwxr-xr-xdpd/apply_adapt_dumps.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/dpd/apply_adapt_dumps.py b/dpd/apply_adapt_dumps.py
index 7b661c9..790a64a 100755
--- a/dpd/apply_adapt_dumps.py
+++ b/dpd/apply_adapt_dumps.py
@@ -46,7 +46,7 @@ import src.Agc as Agc
import src.TX_Agc as TX_Agc
import argparse
-import src.const
+import src.Const
import src.Symbol_align
import src.Measure_Shoulders
import src.MER
@@ -105,20 +105,20 @@ samplerate = cli_args.samplerate
searchpath = cli_args.searchpath
target_median = cli_args.target_median
-c = src.const.const(samplerate, target_median)
+c = src.Const.Const(samplerate, target_median, -1, -1, -1)
SA = src.Symbol_align.Symbol_align(c)
MER = src.MER.MER(c)
-MS = src.Measure_Shoulders.Measure_Shoulder(c, plot=False)
+MS = src.Measure_Shoulders.Measure_Shoulders(c)
meas = Measure.Measure(samplerate, port, num_req)
-extStat = ExtractStatistic.ExtractStatistic(c, plot=True)
+extStat = ExtractStatistic.ExtractStatistic(c)
adapt = Adapt.Adapt(port_rc, coef_path)
dpddata = adapt.get_predistorter()
if cli_args.lut:
- model = Model.Lut(c, plot=True)
+ model = Model.Lut(c)
else:
- model = Model.Poly(c, plot=True)
+ model = Model.Poly(c)
adapt.set_predistorter(model.get_dpd_data())
adapt.set_digital_gain(digital_gain)
adapt.set_txgain(txgain)