Skip to content

Commit

Permalink
stability improvement and also deprecation warning avoidance
Browse files Browse the repository at this point in the history
  • Loading branch information
sibirrer committed Jan 26, 2024
1 parent 9f0365b commit 0dd976d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lenstronomy/ImSim/image_linear_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def _image_linear_solve_interferometry_natwt_solving(self, A, d):
for i in range(num_of_light):
b[i] = np.sum(A[i] * (d))

param_amps = np.linalg.lstsq(M, b)[0]
param_amps = np.linalg.lstsq(M, b, rcond=None)[0]

clean_temp = np.zeros((num_of_image_pixel))
dirty_temp = np.zeros((num_of_image_pixel))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_image_linear_solve_with_primary_beam_and_interferometry_psf():
b[0] = np.sum(A0 * sim_data)
b[1] = np.sum(A1 * sim_data)

amps0 = np.linalg.lstsq(M, b)[0]
amps0 = np.linalg.lstsq(M, b, rcond=None)[0]
clean_model = amps0[0] * A0 + amps0[1] * A1
dirty_model = amps0[0] * A0c + amps0[1] * A1c

Expand Down

0 comments on commit 0dd976d

Please sign in to comment.