summaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-27 19:11:26 +0200
committerandreas128 <Andreas>2017-09-27 19:11:26 +0200
commit071088f747f5629f60b01017bdcff5161efb7ba5 (patch)
treefe93d18d886ea0225175167fa0f3ee2a9031801a /dpd
parent053e29975ab5396d2127192d47bebb723b092fef (diff)
downloaddabmod-071088f747f5629f60b01017bdcff5161efb7ba5.tar.gz
dabmod-071088f747f5629f60b01017bdcff5161efb7ba5.tar.bz2
dabmod-071088f747f5629f60b01017bdcff5161efb7ba5.zip
Fix plot enable/disable
Diffstat (limited to 'dpd')
-rw-r--r--dpd/src/Adapt.py2
-rw-r--r--dpd/src/Model_Poly.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/dpd/src/Adapt.py b/dpd/src/Adapt.py
index b17f059..1d3c84a 100644
--- a/dpd/src/Adapt.py
+++ b/dpd/src/Adapt.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# DPD Calculation Engine: updates ODR-DabMod's predistortion block.
+# DPD Calculation Engine: updates ODR-DabMod's settings
#
# http://www.opendigitalradio.org
# Licence: The MIT License, see notice at the end of this file
diff --git a/dpd/src/Model_Poly.py b/dpd/src/Model_Poly.py
index 78bab91..44e0483 100644
--- a/dpd/src/Model_Poly.py
+++ b/dpd/src/Model_Poly.py
@@ -44,14 +44,15 @@ class Poly:
learning_rate_am=1.0,
learning_rate_pm=1.0):
self.c = c
+ self.plot = c.MDL_plot
self.learning_rate_am = learning_rate_am
self.learning_rate_pm = learning_rate_pm
self.reset_coefs()
- self.model_am = Model_AM.Model_AM(c, plot=True)
- self.model_pm = Model_PM.Model_PM(c, plot=True)
+ self.model_am = Model_AM.Model_AM(c, plot=self.plot)
+ self.model_pm = Model_PM.Model_PM(c, plot=self.plot)
self.plot = c.MDL_plot