diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-05-09 17:22:39 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-05-09 17:22:39 +0200 |
commit | 1890439e8786feaaf4fa6612289812984a0c75e9 (patch) | |
tree | 574e41f93eae237a7b727e2358e3ce0e66f7899e /dpd/src/Model_PM.py | |
parent | 277f4d4999b30cfc858c30bcb029a9c224b21806 (diff) | |
download | dabmod-1890439e8786feaaf4fa6612289812984a0c75e9.tar.gz dabmod-1890439e8786feaaf4fa6612289812984a0c75e9.tar.bz2 dabmod-1890439e8786feaaf4fa6612289812984a0c75e9.zip |
DPDCE: fix linalg.lstsq warning
Diffstat (limited to 'dpd/src/Model_PM.py')
-rw-r--r-- | dpd/src/Model_PM.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/src/Model_PM.py b/dpd/src/Model_PM.py index 3aafea0..7b80bf3 100644 --- a/dpd/src/Model_PM.py +++ b/dpd/src/Model_PM.py @@ -81,7 +81,7 @@ class Model_PM: return np.array([sig ** i for i in range(0, 5)]).T def fit_poly(self, tx_abs, phase_diff): - return np.linalg.lstsq(self.poly(tx_abs), phase_diff)[0] + return np.linalg.lstsq(self.poly(tx_abs), phase_diff, rcond=None)[0] def calc_line(self, coefs, min_amp, max_amp): tx_range = np.linspace(min_amp, max_amp) |