From efd96b06c13a828f5ce336831165801d8cb93f40 Mon Sep 17 00:00:00 2001 From: Abhijeet Anand Date: Wed, 27 Sep 2023 22:14:21 -0700 Subject: [PATCH] prior removed --- py/redrock/zscan.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/py/redrock/zscan.py b/py/redrock/zscan.py index 7c8411b5..5f03acbe 100644 --- a/py/redrock/zscan.py +++ b/py/redrock/zscan.py @@ -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':[]}