Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
sibirrer committed Aug 8, 2024
2 parents 3a57a0d + 75170d9 commit 66c74a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lenstronomy/Sampling/Likelihoods/position_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def logL(self, kwargs_lens, kwargs_ps, kwargs_special, verbose=False):
"Number of images found %s exceeded the limited number allowed %s"
% (len(ra_image_list[0]), self._max_num_images)
)
if self._source_position_likelihood is True or self._bound_source_position_tolerance is not None:
if (
self._source_position_likelihood is True
or self._bound_source_position_tolerance is not None
):
logL_source_pos = self.source_position_likelihood(
kwargs_lens,
kwargs_ps,
Expand Down
3 changes: 2 additions & 1 deletion lenstronomy/Sampling/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def __init__(
:param kwargs_pixelbased: keyword arguments with various settings related to the
pixel-based solver (see SLITronomy documentation)
:param kinematic_2d_likelihood: bool, option to compute the kinematic likelihood
:param tracer_likelihood: option to perform likelihood on tracer quantity derived from imaging or spectroscopy
:param tracer_likelihood: option to perform likelihood on tracer quantity
derived from imaging or spectroscopy
"""
# TODO unpack also tracer model from kwargs_data
(
Expand Down

0 comments on commit 66c74a7

Please sign in to comment.