Skip to content

Implementation of h_n maps#473

Draft
camilledemay wants to merge 20 commits intomasterfrom
h_n_maps
Draft

Implementation of h_n maps#473
camilledemay wants to merge 20 commits intomasterfrom
h_n_maps

Conversation

@camilledemay
Copy link

WIP: The goal is to have a module to generates the H_n maps described in https://arxiv.org/abs/2109.05038

@paganol paganol assigned paganol and unassigned paganol Dec 4, 2025
@paganol paganol added the enhancement New feature or request label Dec 4, 2025
@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  litebird_sim
  __init__.py
  beam_convolution.py 135-139
  hwp_diff_emiss.py 80
  mueller_convolver.py 208-209, 321, 390
  noise.py 21-27, 36-42, 72-85, 215-229, 396
  observations.py 788-799
  simulations.py 2340
  litebird_sim/mapmaking
  __init__.py
  binner.py 86-90
  common.py 167, 199-227
  destriper.py
  h_maps.py 46-49, 77-94, 113-125, 138-156, 162-166, 172-178, 198-212, 258-341, 353-366
Project Total  

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

Copy link

@Magwos Magwos left a comment

Choose a reason for hiding this comment

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

A very few minor comments for the PR + one additional (although probably not necessary) -> Different conventions are used in the comments, either Args or Parameters, should it be homogenized? (I can propose changes to do so if yes!)


@dataclass
class h_map_Re_and_Im:
"""A single h_n,m map component for one detector"""
Copy link

Choose a reason for hiding this comment

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

Addition of "time split" in the comment?

Suggested change
"""A single h_n,m map component for one detector"""
"""A single h_n,m map component for one detector and one time split"""

- ``h_maps``: Dictionnary containing the h_n maps for each spin order n,m and each detector.

- ``coordinate_system``: the coordinate system of the output maps
(a :class:`.CoordinateSistem` object)
Copy link

Choose a reason for hiding this comment

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

Little typo (but I see that it is also in the binner object here:

(a :class:`.CoordinateSistem` object)

Suggested change
(a :class:`.CoordinateSistem` object)
(a :class:`.CoordinateSystem` object)

pixel in the map. It is an array of shape `(12 * nside * nside, 3, 3)`

- ``coordinate_system``: the coordinate system of the output maps
(a :class:`.CoordinateSistem` object)
Copy link

Choose a reason for hiding this comment

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

Correction of the typo

Suggested change
(a :class:`.CoordinateSystem` object)

if not d_mask[idet]:
continue

print(np.shape(pix[idet]), " ", np.shape(hwp_angle))
Copy link

@Magwos Magwos Feb 2, 2026

Choose a reason for hiding this comment

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

Delete print? (If print to be added to the logs, maybe it would be useful to add as well the detector id)

Suggested change
print(np.shape(pix[idet]), " ", np.shape(hwp_angle))

camilledemay and others added 12 commits February 3, 2026 00:59
* [ci skip] warning in slm and blm resize

* [ci skip] some light optimization in mueller_convolver

* [ci skip] some documentation added
…490)

* new logic implemented

* [ci skip] some documentation

* [ci skip] change name of the default from standard to toast

* [ci skip] documentation updated

* [ci skip] fixed warning in the documentation and CHANGELOG updated

* [ci skip] update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants