summaryrefslogtreecommitdiffstats
path: root/dpd/src/MER.py
diff options
context:
space:
mode:
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(