Skip to content

Commit

Permalink
added GAUSSIAN_SCALED in parameter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sibirrer committed Aug 13, 2024
1 parent d5bfb53 commit 3a5a45b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hierarc/Sampling/ParamManager/kin_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init__(
:param anisotropy_sampling: bool, if True, makes use of this module, else ignores it's functionalities
:param anisotropy_model: string, name of anisotropy model to consider
:param distribution_function: string, 'NONE', 'GAUSSIAN', description of the distribution function of the
anisotropy model parameters
:param distribution_function: string, 'NONE', 'GAUSSIAN', 'GAUSSIAN_SCALED', description of the distribution
function of the anisotropy model parameters
:param sigma_v_systematics: bool, if True samples parameters relative to systematics in the velocity dispersion
measurement
:param log_scatter: boolean, if True, samples the Gaussian scatter amplitude in log space (and thus flat prior in log)
Expand Down Expand Up @@ -99,7 +99,7 @@ def args2kwargs(self, args, i=0):
else:
kwargs["a_ani"] = args[i]
i += 1
if self._distribution_function in ["GAUSSIAN"]:
if self._distribution_function in ["GAUSSIAN", "GAUSSIAN_SCALED"]:
if "a_ani_sigma" in self._kwargs_fixed:
kwargs["a_ani_sigma"] = self._kwargs_fixed["a_ani_sigma"]
else:
Expand All @@ -114,7 +114,7 @@ def args2kwargs(self, args, i=0):
else:
kwargs["beta_inf"] = args[i]
i += 1
if self._distribution_function in ["GAUSSIAN"]:
if self._distribution_function in ["GAUSSIAN", "GAUSSIAN_SCALED"]:
if "beta_inf_sigma" in self._kwargs_fixed:
kwargs["beta_inf_sigma"] = self._kwargs_fixed["beta_inf_sigma"]
else:
Expand Down Expand Up @@ -145,7 +145,7 @@ def kwargs2args(self, kwargs):
if self._anisotropy_model in ["OM", "GOM", "const"]:
if "a_ani" not in self._kwargs_fixed:
args.append(kwargs["a_ani"])
if self._distribution_function in ["GAUSSIAN"]:
if self._distribution_function in ["GAUSSIAN", "GAUSSIAN_SCALED"]:
if "a_ani_sigma" not in self._kwargs_fixed:
if self._log_scatter is True:
args.append(np.log10(kwargs["a_ani_sigma"]))
Expand All @@ -154,7 +154,7 @@ def kwargs2args(self, kwargs):
if self._anisotropy_model in ["GOM"]:
if "beta_inf" not in self._kwargs_fixed:
args.append(kwargs["beta_inf"])
if self._distribution_function in ["GAUSSIAN"]:
if self._distribution_function in ["GAUSSIAN", "GAUSSIAN_SCALED"]:
if "beta_inf_sigma" not in self._kwargs_fixed:
if self._log_scatter is True:
args.append(np.log10(kwargs["beta_inf_sigma"]))
Expand Down

0 comments on commit 3a5a45b

Please sign in to comment.