Skip to content

Commit

Permalink
Remove debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshajib committed Dec 4, 2023
1 parent c48ba00 commit 5a1e8c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion hierarc/Likelihood/LensLikelihood/kin_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def log_likelihood(
"error covariance matrix needs to be positive definite"
)
lnlikelihood -= 1 / 2.0 * (self.num_data * np.log(2 * np.pi) + lndet)
print(lnlikelihood)
return lnlikelihood

def sigma_v_measurement_mean(self, sigma_v_sys_offset=None):
Expand Down
4 changes: 2 additions & 2 deletions hierarc/Likelihood/hierarchy_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def lens_log_likelihood(
delta_lum_dist = self.luminosity_distance_modulus(cosmo, z_apparent_m_anchor)
# here we effectively change the posteriors of the lens, but rather than changing the instance of the KDE we
# displace the predicted angular diameter distances in the opposite direction
return self.hyper_param_likelihood(
a = self.hyper_param_likelihood(
ddt,
dd,
delta_lum_dist,
Expand All @@ -151,6 +151,7 @@ def lens_log_likelihood(
kwargs_source=kwargs_source,
cosmo=cosmo,
)
return a

def hyper_param_likelihood(
self,
Expand Down Expand Up @@ -258,7 +259,6 @@ def log_likelihood_single(
sigma_v_sys_error=sigma_v_sys_error,
mu_intrinsic=mag_source_,
)
print(scaling_param_array, kin_scaling, lnlikelihood)
return np.nan_to_num(lnlikelihood)

def draw_scaling_params(self, kwargs_lens=None, **kwargs_kin):
Expand Down

0 comments on commit 5a1e8c7

Please sign in to comment.