Skip to content

Commit

Permalink
typo corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi0395 committed Aug 26, 2023
1 parent 3281546 commit b58408e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/redrock/zscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def per_camera_coeff_with_least_square(spectra, tdata, nleg, method=None, n_nbh=
try:
zcoeff = solve_matrices(M, y, solve_algorithm='PCA', use_gpu=False)
except np.linalg.LinAlgError:
return 9e+99, np.zeros(nbasis2)
return 9e+99, np.zeros(nbasis)

# BVLS implementation with scipy
if method=='bvls':
Expand All @@ -309,7 +309,7 @@ def per_camera_coeff_with_least_square(spectra, tdata, nleg, method=None, n_nbh=
res = lsq_linear(M, y, bounds=bounds, method='bvls')
zcoeff = res.x
except np.linalg.LinAlgError:
return 9e+99, np.zeros(nbasis2)
return 9e+99, np.zeros(nbasis)

model = Tb.dot(zcoeff)
zchi2 = np.dot((flux - model)**2, weights)
Expand Down

0 comments on commit b58408e

Please sign in to comment.