diff options
author | andreas128 <Andreas> | 2017-09-22 16:31:10 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-22 16:31:10 +0200 |
commit | 62f118dd40c12471b98b6eec555c8a1ad54dc696 (patch) | |
tree | 079149820785ebad961036151e599cb80be24391 /dpd/src/Model_PM.py | |
parent | 57e4244954756b150771c094004a0f2213ee609f (diff) | |
download | dabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.tar.gz dabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.tar.bz2 dabmod-62f118dd40c12471b98b6eec555c8a1ad54dc696.zip |
Set small phases offsets to zero
Diffstat (limited to 'dpd/src/Model_PM.py')
-rw-r--r-- | dpd/src/Model_PM.py | 6 |
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 |