summaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-22 16:31:10 +0200
committerandreas128 <Andreas>2017-09-22 16:31:10 +0200
commit62f118dd40c12471b98b6eec555c8a1ad54dc696 (patch)
tree079149820785ebad961036151e599cb80be24391 /dpd/src
parent57e4244954756b150771c094004a0f2213ee609f (diff)
downloaddabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.tar.gz
dabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.tar.bz2
dabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.zip
Set small phases offsets to zero
Diffstat (limited to 'dpd/src')
-rw-r--r--dpd/src/Model_PM.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dpd/src/Model_PM.py b/dpd/src/Model_PM.py
index 8d35051..eab5ec5 100644
--- a/dpd/src/Model_PM.py
+++ b/dpd/src/Model_PM.py
@@ -77,8 +77,10 @@ class Model_PM:
plt.close(fig)
def _discard_small_values(self, tx_dpd, phase_diff):
- mask = tx_dpd > self.c.MPM_tx_min
- return tx_dpd[mask], phase_diff[mask]
+ """ Assumes that the phase for small tx amplitudes is zero"""
+ mask = tx_dpd < self.c.MPM_tx_min
+ phase_diff[mask] = 0
+ return tx_dpd, phase_diff
def poly(self, sig):
return np.array([sig ** i for i in range(0, 5)]).T