summaryrefslogtreecommitdiffstats
path: root/dpd/main.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-28 12:13:42 +0200
committerandreas128 <Andreas>2017-09-28 12:13:42 +0200
commit41a2f79220132a49b1ecaf710b494c278fc8d0d6 (patch)
treeabd21bad2a8a87a29fc48285c78e5fec1773f666 /dpd/main.py
parentdf943d798ffb16214fcf714d1b308a366e1566d1 (diff)
downloaddabmod-41a2f79220132a49b1ecaf710b494c278fc8d0d6.tar.gz
dabmod-41a2f79220132a49b1ecaf710b494c278fc8d0d6.tar.bz2
dabmod-41a2f79220132a49b1ecaf710b494c278fc8d0d6.zip
Change default for plots
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-xdpd/main.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/dpd/main.py b/dpd/main.py
index 5eaa81f..aa96a8c 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -91,13 +91,9 @@ parser.add_argument('-i', '--iterations', default=1, type=int,
parser.add_argument('-L', '--lut',
help='Use lookup table instead of polynomial predistorter',
action="store_true")
-parser.add_argument('--n_bins', default='64', type=int,
- required=False)
-parser.add_argument('--n_per_bin', default='128', type=int,
- required=False)
-parser.add_argument('--n_meas', default='20', type=int,
- help='Number of samples to request from ODR-DabMod',
- required=False)
+parser.add_argument('--plot',
+ help='Enable all plots, to be more selective choose plots in Const.py',
+ action="store_true")
cli_args = parser.parse_args()
logging.info(cli_args)
@@ -112,12 +108,9 @@ num_iter = cli_args.iterations
target_median = cli_args.target_median
rxgain = cli_args.rxgain
txgain = cli_args.txgain
+plot = cli_args.plot
-n_bins = cli_args.n_bins
-n_per_bin = cli_args.n_per_bin
-n_meas = cli_args.n_meas
-
-c = Const(samplerate, target_median, n_bins, n_per_bin, n_meas)
+c = Const(samplerate, target_median, plot)
SA = Symbol_align(c)
MER = MER(c)
MS = Measure_Shoulders(c)