Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH(galaxies): NLA model for intrinsic alignments #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

mwiet
Copy link

@mwiet mwiet commented Jul 27, 2022

The ia_nla function computes the effective convergence from intrinsic alignments, calculated using the Non-linear Aligments Model (NLA). The convergence from intrinsic aligments is follows Catelan et al. (2000), Hirata & Seljak (2004), Bridle & King (2007).

Added: The new kappa_ia_nla() function computes an effective convergence due to Intrinsic Alignments using the NLA model.
Reviewed-by: Nicolas Tessore
Reviewed-by: Arthur Loureiro [email protected]

@arthurmloureiro
Copy link
Contributor

Hi @mwiet,

Can you add documentation with references and equations to the docstring in the NLA model?

There are templates for this in the other functions :)

@mwiet
Copy link
Author

mwiet commented Jul 27, 2022

Hi there! Thanks for letting me know! The documentation and references are now included in the function's docstring.

Copy link
Collaborator

@ntessore ntessore left a comment

Choose a reason for hiding this comment

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

Great first PR! Only a couple of minor changes.

Could you also add your new generator to the documentation by including it in the list at the top of the file?

glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@ntessore ntessore left a comment

Choose a reason for hiding this comment

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

That's great! Please take a look at the generated documentation (the link is under the "checks" in this PR), there are a couple of issues there (e.g. the references aren't linked, and math errors).

glass/lensing.py Outdated Show resolved Hide resolved
glass/lensing.py Outdated Show resolved Hide resolved
@ntessore ntessore self-assigned this Sep 30, 2022
@ntessore ntessore added enhancement New feature or request ⚡ galaxies and removed ⚡ lensing labels Sep 30, 2022
@ntessore ntessore added this to the paper release milestone Sep 30, 2022
@ntessore
Copy link
Collaborator

Closing this, as the code is copied from the bornraytrace package without attribution. We will create an extension using that package instead.

@ntessore ntessore closed this Feb 28, 2023
@ntessore ntessore deleted the ia_nla branch February 28, 2023 18:26
@ntessore ntessore restored the ia_nla branch March 21, 2023 14:23
@ntessore ntessore reopened this Mar 21, 2023
@ntessore
Copy link
Collaborator

Ok, the issue has been resolved! I think we can try and merge this again. I will let @NiallJeffrey review this PR.

@ntessore ntessore changed the title Inclusion of the NLA model for intrinsic alignments ENH: NLA model for intrinsic alignments Mar 21, 2023
@ntessore ntessore modified the milestones: v2023.2, v2023.3 Mar 21, 2023
@ntessore ntessore modified the milestones: v2023.3, v2022.4 Apr 3, 2023
@ntessore ntessore changed the title ENH: NLA model for intrinsic alignments ENH(galaxies): NLA model for intrinsic alignments May 18, 2023
@mwiet
Copy link
Author

mwiet commented May 22, 2023 via email

@ntessore ntessore modified the milestones: v2023.5, v2023.6 May 31, 2023
@ntessore ntessore removed this from the v2023.6 milestone Jun 30, 2023
@ntessore ntessore added this to the v2023.7 milestone Jun 30, 2023
@ntessore ntessore modified the milestones: v2023.7, v2023.8 Aug 1, 2023
Copy link
Collaborator

@ntessore ntessore left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Pinging @NiallJeffrey for scientific review.

@ntessore ntessore added the science Science improvement or question label Mar 19, 2024
Copy link
Contributor

@arthurmloureiro arthurmloureiro left a comment

Choose a reason for hiding this comment

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

Let's merge this asap :D

glass/galaxies.py Show resolved Hide resolved
glass/galaxies.py Outdated Show resolved Hide resolved
@arthurmloureiro
Copy link
Contributor

@ntessore I think we can merge this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request science Science improvement or question
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants