Skip to content

feature/dspl positions#351

Merged
Jammy2211 merged 11 commits intomainfrom
feature/dspl_positions
May 21, 2025
Merged

feature/dspl positions#351
Jammy2211 merged 11 commits intomainfrom
feature/dspl_positions

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Updates and refactors image-plane multiple image based positions likelihood penalty to support multiple lens planes (e.g. double einstein ring systems).

Multiple Source Plane Systems

A double source plane system is a lens system where there are multiple source-planes at different redshifts, meaning that
incuding the image-plane there are at least 3 planes.

The PositionsLH class can have a plane_redshift input, which specifies the redshift of the source-plane
the positions are ray-traced to.

Multiple PositionsLH objects can be passed to the Analysis object, which then applies the penalty term to
both source-planes independently such that a double source-plane system can be fitted with the penalty based likelihood
functionality.

    positions_likelihood_source_plane_0 = al.PositionsLH(positions=positions, threshold=0.3, plane_redshift=1.0)
    positions_likelihood_source_plane_1 = al.PositionsLH(positions=positions, threshold=0.3, plane_redshift=2.0)

    analysis = al.AnalysisImaging(
        dataset=dataset, positions_likelihood_list=
            [
                positions_likelihood_source_plane_0,
                positions_likelihood_source_plane_1
            ]
    )

To set up an Analysis object with multiple PositionsLH objects from a result, each positions likelihood is
computed from the result for each plane_redshift:

    analysis = al.AnalysisImaging(
        dataset=dataset,
        positions_likelihood_list=[
            source_lp_result.positions_likelihood_from(
                factor=3.0, minimum_threshold=0.2, plane_redshift=source_lp_result.instance.galaxies.source_1.redshift,
            ),
            source_lp_result.positions_likelihood_from(
                factor=3.0, minimum_threshold=0.2, plane_redshift=source_lp_result.instance.galaxies.source_2.redshift,
            )
        ],
    )

@Jammy2211 Jammy2211 merged commit db1cbd8 into main May 21, 2025
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the feature/dspl_positions branch June 24, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant