Skip to content

Feature/dpie#232

Merged
Jammy2211 merged 5 commits intomainfrom
feature/dPIESph
May 13, 2025
Merged

Feature/dpie#232
Jammy2211 merged 5 commits intomainfrom
feature/dPIESph

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Implements the dPIE dual pseudo Isothermal mass profile, commonly used to model addition galaxies in groups and cluster scale lenses.

Thank you @jhod0 for providing this code, which I refactored into a more autolens-y grid API but will simplify in the near future based on your feedback on using the source code!

@Jammy2211 Jammy2211 merged commit 1edc8e9 into main May 13, 2025
0 of 8 checks passed



class dPIE(MassProfile):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's odd having a lowercase class name I'd call it DPIE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is certainly odd, but the "dPIE" capitalization is standard for this profile. The original Eliasdottir 07 paper used this convention, and most cluster lensing work keeps with it (here's two random papers which use "dPIE": Bergamini 2019, Acebron 2025).

Whether you want to keep that capitalization in the API, as opposed to technical writing, is I guess another matter. But I'd stick with "dPIE" for consistency with other work.

grid = ag.Grid2DIrregular([[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [2.0, 4.0]])


def test__deflections_yx_2d_from():
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some day you'll learn how nice parametrize is :')

@jhod0
Copy link
Copy Markdown
Contributor

jhod0 commented May 16, 2025

Thanks James for implementing this!

@Jammy2211 Jammy2211 deleted the feature/dPIESph 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.

3 participants