Skip to content

Nla m test#602

Open
chrgeorgiou wants to merge 12 commits intomasterfrom
NLA_M_test
Open

Nla m test#602
chrgeorgiou wants to merge 12 commits intomasterfrom
NLA_M_test

Conversation

@chrgeorgiou
Copy link
Copy Markdown
Member

@chrgeorgiou chrgeorgiou commented Jan 8, 2026

Description

This is an implementation of the mass-dependent NLA model for intrinsic alignments as a weak lensing systematic. It adds a simple NLA systematic to each weak lensing tracer where the intrinsic alignment bias amplitude for the NLA model is given by:

$$ A_\mathrm{IA,total}^{(i)}=A_\mathrm{IA,0}f^{(i)}_r\left( \frac{\langle M_\mathrm{h} \rangle^{(i)}}{M_\mathrm{h,piv}} \right)^\beta, $$

where $A_\mathrm{IA,0},\beta$ are the amplitude and mass scaling of the model (as shared parameters, with the same values used for all tracers at each likelihood evaluation) while $f_r^{(i)}$, $\langle M_\mathrm{h} \rangle^{(i)}$ are the fraction of red galaxies and average halo mass of tracer $(i)$. The default pivot halo mass $M_\mathrm{h,piv}=10^{13.5}$ $\mathrm{M_{sun}}/h$.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

The following checklist will make sure that you are following the code style and
guidelines of the project as described in the
contributing page.

  • I have run bash pre-commit-check and fixed any issues
  • I have added tests that prove my fix is effective or that my feature works
  • I have made corresponding changes to the documentation
  • I have 100% test coverage for my changes (please check this after the CI system has verified the coverage)

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (ee9fb5d) to head (a40dc68).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #602   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files         151      151           
  Lines        9044     9064   +20     
  Branches     1033     1033           
=======================================
+ Hits         9044     9064   +20     
Files with missing lines Coverage Δ
firecrown/likelihood/_weak_lensing.py 100.0% <100.0%> (ø)
firecrown/likelihood/weak_lensing/__init__.py 100.0% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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