From 1890439e8786feaaf4fa6612289812984a0c75e9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 9 May 2018 17:22:39 +0200 Subject: DPDCE: fix linalg.lstsq warning --- dpd/src/Model_AM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dpd/src/Model_AM.py') 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): -- cgit v1.2.3