Commit 734aa6ef authored by Roland Haas's avatar Roland Haas
Browse files

POWER: avoid future warning in calling leastsq

parent 7e8d09ed
......@@ -516,10 +516,10 @@ def POWER(sim_path, radii, modes):
b_phase[j] = phase[j][:, 1]
b_amp[j] = amp[j][:, 1]
x_phase = np.linalg.lstsq(A_phase, b_phase)[0]
x_phase = np.linalg.lstsq(A_phase, b_phase, rcond=-1)[0]
radially_extrapolated_phase = x_phase[0]
x_amp = np.linalg.lstsq(A_amp, b_amp)[0]
x_amp = np.linalg.lstsq(A_amp, b_amp, rcond=-1)[0]
radially_extrapolated_amp = x_amp[0]
radially_extrapolated_h_plus = radially_extrapolated_amp * np.cos(radially_extrapolated_phase)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment