From 719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Sat, 2 Sep 2017 19:18:01 +0200 Subject: Cleanup logging and plots --- dpd/src/MER.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dpd/src/MER.py') diff --git a/dpd/src/MER.py b/dpd/src/MER.py index 54ef6c6..2075ef5 100644 --- a/dpd/src/MER.py +++ b/dpd/src/MER.py @@ -75,8 +75,9 @@ class MER: spectrum = self._calc_spectrum(tx) - dt = datetime.datetime.now().isoformat() - fig_path = logging_path + "/" + dt + "_MER.pdf" + if debug: + dt = datetime.datetime.now().isoformat() + fig_path = logging_path + "/" + dt + "_MER.pdf" MERs = [] for i, (x, y) in enumerate(self._split_in_carrier( -- cgit v1.2.3