aboutsummaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-25 10:22:34 +0200
committerandreas128 <Andreas>2017-09-25 10:22:34 +0200
commit5ee0d9106b7452e5efb1401692091a3cc0ba2ea6 (patch)
tree7c9e11c3e2a86a885c9ea055f0310ee07c24e2b4 /dpd
parentb821bd80132eaa6e7132508d0e12787db45f4f16 (diff)
downloaddabmod-5ee0d9106b7452e5efb1401692091a3cc0ba2ea6.tar.gz
dabmod-5ee0d9106b7452e5efb1401692091a3cc0ba2ea6.tar.bz2
dabmod-5ee0d9106b7452e5efb1401692091a3cc0ba2ea6.zip
Add parameter for median
Diffstat (limited to 'dpd')
-rwxr-xr-xdpd/apply_adapt_dumps.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/dpd/apply_adapt_dumps.py b/dpd/apply_adapt_dumps.py
index 1013ce0..1d91717 100755
--- a/dpd/apply_adapt_dumps.py
+++ b/dpd/apply_adapt_dumps.py
@@ -80,6 +80,10 @@ parser.add_argument('--digital_gain', default=1,
parser.add_argument('--samps', default='81920', type=int,
help='Number of samples to request from ODR-DabMod',
required=False)
+parser.add_argument('--target_median', default=0.1,
+ help='target_median',
+ required=False,
+ type=float)
parser.add_argument('--searchpath', default='./stored', type=str,
help='Path to search .pkl files with stored configuration'
'for adapt',
@@ -99,10 +103,11 @@ rxgain = cli_args.rxgain
num_req = cli_args.samps
samplerate = cli_args.samplerate
searchpath = cli_args.searchpath
+target_median = cli_args.target_median
-c = src.const.const(samplerate)
-SA = src.Symbol_align.Symbol_align(samplerate)
-MER = src.MER.MER(samplerate)
+c = src.const.const(samplerate, target_median)
+SA = src.Symbol_align.Symbol_align(c)
+MER = src.MER.MER(c)
MS = src.Measure_Shoulders.Measure_Shoulder(c, plot=False)
meas = Measure.Measure(samplerate, port, num_req)