summaryrefslogtreecommitdiffstats
path: root/dpd/src/MER.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-02 19:18:01 +0200
committerandreas128 <Andreas>2017-09-02 19:18:01 +0200
commit719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5 (patch)
tree05fb049f22a526dd3b2c46b99f7546a84f4938a3 /dpd/src/MER.py
parent6907d576b69ae065f25584fd4c6635c0c26beab2 (diff)
downloaddabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.tar.gz
dabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.tar.bz2
dabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.zip
Cleanup logging and plots
Diffstat (limited to 'dpd/src/MER.py')
-rw-r--r--dpd/src/MER.py5
1 files changed, 3 insertions, 2 deletions
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(