New feature to sample distance ratios in multi-lens-plane and multi-source-plane setting #558
ajshajib
started this conversation in
Feature discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I added a new feature to sample the distance ratios in the mult-lens-plane and multi-source-plane cases, with PR #318. To use this feature,
kwargs_model
needs to be set up as:And, the
kwargs_special
needs to have"factor_a_{i}"
and"factor_b_{i}"
parameters defined in it, which are sampled (or can be fixed as desired like any other model parameter), for example:In the multi-lens-plane setting with$P$ lens planes (and the last source plane being the $P+1$ -th plane), the effective Fermat potential is defined as (eq. 9 of Shajib et al. 2020):
Then, the$a_i$ and $b_i$ distance ratios are defined as:
Instead of sampling$a_i$ and $b_i$ ,
lenstronomy
samples"factor_a_{i}"
and"factor_b_{i}"
parameters that are defined using the fiducial cosmologycosmo
provided inkwargs_model
as follows:"factor_b_1"
and"factor_b_{P}"
are not needed to be defined, asBeta Was this translation helpful? Give feedback.
All reactions