Skip to content

Commit

Permalink
rename kappa_ext_alt to use_kappa_ext_alt
Browse files Browse the repository at this point in the history
  • Loading branch information
williyamshoe committed Apr 24, 2024
1 parent 1fd4b05 commit 7ac763c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions hierarc/Likelihood/cosmo_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
log_m2l_distribution="NONE",
kappa_ext_sampling=False,
kappa_ext_distribution="NONE",
kappa_ext_alt=False,
use_kappa_ext_alt=False,
alpha_lambda_sampling=False,
beta_lambda_sampling=False,
alpha_gamma_in_sampling=False,
Expand Down Expand Up @@ -76,7 +76,7 @@ def __init__(
according to the lens posterior kwargs 'lambda_scaling_property_beta'
:param kappa_ext_sampling: bool, if True samples a global external convergence parameter
:param kappa_ext_distribution: string, distribution function of the kappa_ext parameter
:param kappa_ext_alt: bool, if True samples kappa_ext with the kappa_ext_alt and/or kappa_ext_alt_sigma
:param use_kappa_ext_alt: bool, if True samples kappa_ext with the kappa_ext_alt and/or kappa_ext_alt_sigma
distribution
:param anisotropy_sampling: bool, if True adds a global stellar anisotropy parameter that alters the single lens
kinematic prediction
Expand Down Expand Up @@ -132,7 +132,7 @@ def __init__(
sigma_v_systematics=sigma_v_systematics,
kappa_ext_sampling=kappa_ext_sampling,
kappa_ext_distribution=kappa_ext_distribution,
kappa_ext_alt=kappa_ext_alt,
use_kappa_ext_alt=use_kappa_ext_alt,
anisotropy_sampling=anisotropy_sampling,
anisotropy_model=anisotropy_model,
anisotropy_distribution=anisotropy_distribution,
Expand Down
12 changes: 6 additions & 6 deletions hierarc/Sampling/ParamManager/lens_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
log_m2l_distribution="NONE",
kappa_ext_sampling=False,
kappa_ext_distribution="NONE",
kappa_ext_alt=False,
use_kappa_ext_alt=False,
alpha_lambda_sampling=False,
beta_lambda_sampling=False,
alpha_gamma_in_sampling=False,
Expand All @@ -42,7 +42,7 @@ def __init__(
parameter
:param kappa_ext_distribution: string, distribution function of the kappa_ext
parameter
:param kappa_ext_alt: bool, if True samples kappa_ext with the kappa_ext_alt and/or kappa_ext_alt_sigma
:param use_kappa_ext_alt: bool, if True samples kappa_ext with the kappa_ext_alt and/or kappa_ext_alt_sigma
distribution
:param alpha_lambda_sampling: bool, if True samples a parameter alpha_lambda, which scales lambda_mst linearly
according to a predefined quantity of the lens
Expand All @@ -63,7 +63,7 @@ def __init__(
self._log_m2l_distribution = log_m2l_distribution
self._kappa_ext_sampling = kappa_ext_sampling
self._kappa_ext_distribution = kappa_ext_distribution
self._kappa_ext_alt = kappa_ext_alt
self._use_kappa_ext_alt = use_kappa_ext_alt
self._alpha_lambda_sampling = alpha_lambda_sampling
self._beta_lambda_sampling = beta_lambda_sampling
self._alpha_gamma_in_sampling = alpha_gamma_in_sampling
Expand Down Expand Up @@ -153,7 +153,7 @@ def param_list(self, latex_style=False):
list.append(r"$\sigma(\kappa_{\rm ext})$")
else:
list.append("kappa_ext_sigma")
if self._kappa_ext_alt is True:
if self._use_kappa_ext_alt is True:
if "kappa_ext_alt" not in self._kwargs_fixed:
if latex_style is True:
list.append(r"$\overline{\kappa}_{\rm ext, alt}$")
Expand Down Expand Up @@ -270,7 +270,7 @@ def args2kwargs(self, args, i=0):
else:
kwargs["kappa_ext_sigma"] = args[i]
i += 1
if self._kappa_ext_alt is True:
if self._use_kappa_ext_alt is True:
if "kappa_ext_alt" in self._kwargs_fixed:
kwargs["kappa_ext_alt"] = self._kwargs_fixed["kappa_ext_alt"]
else:
Expand Down Expand Up @@ -360,7 +360,7 @@ def kwargs2args(self, kwargs):
if self._kappa_ext_distribution == "GAUSSIAN":
if "kappa_ext_sigma" not in self._kwargs_fixed:
args.append(kwargs["kappa_ext_sigma"])
if self._kappa_ext_alt is True:
if self._use_kappa_ext_alt is True:
if "kappa_ext_alt" not in self._kwargs_fixed:
args.append(kwargs["kappa_ext_alt"])
if self._kappa_ext_distribution == "GAUSSIAN":
Expand Down
4 changes: 2 additions & 2 deletions hierarc/Sampling/ParamManager/param_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(
log_m2l_distribution="NONE",
kappa_ext_sampling=False,
kappa_ext_distribution="NONE",
kappa_ext_alt=False,
use_kappa_ext_alt=False,
lambda_ifu_sampling=False,
lambda_ifu_distribution="NONE",
alpha_lambda_sampling=False,
Expand Down Expand Up @@ -104,7 +104,7 @@ def __init__(
log_m2l_distribution=log_m2l_distribution,
kappa_ext_sampling=kappa_ext_sampling,
kappa_ext_distribution=kappa_ext_distribution,
kappa_ext_alt=kappa_ext_alt,
use_kappa_ext_alt=use_kappa_ext_alt,
alpha_lambda_sampling=alpha_lambda_sampling,
beta_lambda_sampling=beta_lambda_sampling,
alpha_gamma_in_sampling=alpha_gamma_in_sampling,
Expand Down

0 comments on commit 7ac763c

Please sign in to comment.