Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
calumgordon committed Dec 3, 2024
1 parent 956a1d0 commit 761b64e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vega/correlation_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,18 @@ def _prep_gamma_model(self):
#mus = (rp_Q_M / r_Q_M)

#return r_Q_M, mus
#xi_Q_M = jitted_interp(r_Q_M, self._r_qso_auto, self._xi_qso_auto)
xi_Q_M = jitted_interp(r_Q_M, self._r_qso_auto, self._xi_qso_auto)

#log interp
xi_Q_M = jitted_interp(np.log10(r_Q_M), np.log10(self._r_qso_auto), np.log10(self._xi_qso_auto))
xi_Q_M_lin = 10**xi_Q_M
#xi_Q_M = jitted_interp(np.log10(r_Q_M), np.log10(self._r_qso_auto), np.log10(self._xi_qso_auto))
#xi_Q_M = 10**xi_Q_M

p_vec_q2 = jitted_interp(self._zq2[k],self._zqso,self._p_qso)

dzq2 = (self._zq2[k][:,1] - self._zq2[k][:,0])[:,None]

#add to integral
self._prep_matrix[k] += (self._p_vec_q1 * p_vec_q2 * abs(self._dzq1) * abs(dzq2) * xi_Q_M_lin)
self._prep_matrix[k] += (self._p_vec_q1 * p_vec_q2 * abs(self._dzq1) * abs(dzq2) * xi_Q_M)

self._mask_M[k] = mask

Expand Down

0 comments on commit 761b64e

Please sign in to comment.