Skip to content

Commit

Permalink
prior removed
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi0395 committed Sep 28, 2023
1 parent a0f8652 commit efd96b0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions py/redrock/zscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,6 @@ def per_camera_coeff_with_least_square(spectra, tdata, nleg, method=None, n_nbh=
Tb = Tb_for_archetype(spectra, tdata, nbasis, n_nbh, nleg)
M = Tb.T.dot(np.multiply(weights[:,None], Tb))
y = Tb.T.dot(wflux)
prior = np.zeros(M.shape)
#sigmas =[[0.4, 0.2, 0.5], [0.4, 0.2, 0.1]]
sigmas = [[1,1,1], [1,1,1]]
for i in range(3):
prior[2*i+1][2*i+1]= 1/sigmas[0][i]**2
prior[2*i+2][2*i+2]= 1/sigmas[1][i]**2
M = M + prior

ret_zcoeff= {'alpha':[], 'b':[], 'r':[], 'z':[]}

Expand Down

0 comments on commit efd96b0

Please sign in to comment.