Skip to content

Fix input sky unit error - #549

Open
mj-gomes wants to merge 3 commits into
masterfrom
fix_bandintegration_units
Open

Fix input sky unit error#549
mj-gomes wants to merge 3 commits into
masterfrom
fix_bandintegration_units

Conversation

@mj-gomes

@mj-gomes mj-gomes commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #548

origin_unit in _get_cmb_unit_conversion() is by default K_CMB, but then when calling pysm3.bandpass_unit_conversion we do not specify that as the input unit, so it was using the default uK_RJ.

Now it is working.

TODO before merging: (DONE)

  • Fix expected values in tests

@mj-gomes
mj-gomes requested a review from paganol August 6, 2026 14:26
@mj-gomes mj-gomes self-assigned this Aug 6, 2026
@mj-gomes mj-gomes added the bug Something isn't working label Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  litebird_sim
  input_sky.py
  mpi.py
  observations.py
  simulations.py
  litebird_sim/mapmaking
  common.py
  destriper.py
Project Total  

This report was generated by python-coverage-comment-action

@mj-gomes

mj-gomes commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Added a CI test for the verification of correct conversion when bandpass integrating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit problem with bandpass_integration in input sky generation

1 participant