From 071088f747f5629f60b01017bdcff5161efb7ba5 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Wed, 27 Sep 2017 19:11:26 +0200 Subject: Fix plot enable/disable --- dpd/src/Adapt.py | 2 +- dpd/src/Model_Poly.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'dpd/src') 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 -- cgit v1.2.3