summaryrefslogtreecommitdiffstats
path: root/dpd/src/Model_AM.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-09 17:22:39 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-09 17:22:39 +0200
commit1890439e8786feaaf4fa6612289812984a0c75e9 (patch)
tree574e41f93eae237a7b727e2358e3ce0e66f7899e /dpd/src/Model_AM.py
parent277f4d4999b30cfc858c30bcb029a9c224b21806 (diff)
downloaddabmod-1890439e8786feaaf4fa6612289812984a0c75e9.tar.gz
dabmod-1890439e8786feaaf4fa6612289812984a0c75e9.tar.bz2
dabmod-1890439e8786feaaf4fa6612289812984a0c75e9.zip
DPDCE: fix linalg.lstsq warning
Diffstat (limited to 'dpd/src/Model_AM.py')
-rw-r--r--dpd/src/Model_AM.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/src/Model_AM.py b/dpd/src/Model_AM.py
index 9800d83..75b226f 100644
--- a/dpd/src/Model_AM.py
+++ b/dpd/src/Model_AM.py
@@ -29,7 +29,7 @@ def poly(sig):
def fit_poly(tx_abs, rx_abs):
- return np.linalg.lstsq(poly(rx_abs), tx_abs)[0]
+ return np.linalg.lstsq(poly(rx_abs), tx_abs, rcond=None)[0]
def calc_line(coefs, min_amp, max_amp):