From 02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d Mon Sep 17 00:00:00 2001 From: andreas128 Date: Wed, 27 Sep 2017 12:49:04 +0200 Subject: Move consts to Const.py; Cleanup --- dpd/src/ExtractStatistic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dpd/src/ExtractStatistic.py') diff --git a/dpd/src/ExtractStatistic.py b/dpd/src/ExtractStatistic.py index 306c401..bf9eba5 100644 --- a/dpd/src/ExtractStatistic.py +++ b/dpd/src/ExtractStatistic.py @@ -34,9 +34,7 @@ class ExtractStatistic: """Calculate a low variance RX value for equally spaced tx values of a predefined range""" - def __init__(self, - c, - plot=False): + def __init__(self, c): self.c = c self.n_meas = 0 @@ -58,7 +56,7 @@ class ExtractStatistic: for i in range(c.ES_n_bins): self.rx_values.append(None) - self.plot = plot + self.plot = c.ES_plot def _plot_and_log(self): if logging.getLogger().getEffectiveLevel() == logging.DEBUG and self.plot: -- cgit v1.2.3