aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src/phase_align.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-24 19:26:47 +0200
committerandreas128 <Andreas>2017-08-24 19:26:47 +0200
commit3ca742663b6bf20a89c28a70668f50ceee6a23d0 (patch)
treed0c8fc956ca88a9ae49c8cf01c8e5fcb7e81ae95 /dpd/src/phase_align.py
parent28462b9d8bb08609810ea9a9882c5fa9205b8b80 (diff)
parentcedc4708cf73151c6b887198b14851c6adf8fc86 (diff)
downloaddabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.tar.gz
dabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.tar.bz2
dabmod-3ca742663b6bf20a89c28a70668f50ceee6a23d0.zip
Remove polynom term without coefficient
Diffstat (limited to 'dpd/src/phase_align.py')
-rw-r--r--dpd/src/phase_align.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/dpd/src/phase_align.py b/dpd/src/phase_align.py
index bea0b82..f03184b 100644
--- a/dpd/src/phase_align.py
+++ b/dpd/src/phase_align.py
@@ -1,9 +1,12 @@
+import datetime
+import os
+import logging
+logging_path = os.path.dirname(logging.getLoggerClass().root.handlers[0].baseFilename)
+
import numpy as np
from scipy import signal, optimize
import sys
import matplotlib.pyplot as plt
-import datetime
-import logging
def phase_align(sig, ref_sig):
@@ -19,7 +22,7 @@ def phase_align(sig, ref_sig):
if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
dt = datetime.datetime.now().isoformat()
- fig_path = "/tmp/" + dt + "_phase_align.pdf"
+ fig_path = logging_path + "/" + dt + "_phase_align.pdf"
plt.subplot(511)
plt.hist(angle_diff, bins=60, label="Angle Diff")