Skip to content

Implementation of h_n maps#473

Draft
camilledemay wants to merge 24 commits intomasterfrom
h_n_maps
Draft

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

Conversation

@camilledemay
Copy link
Copy Markdown

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
Copy Markdown

github-actions bot commented Dec 15, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  litebird_sim
  input_sky.py
  maps_and_harmonics.py
  simulations.py 2490
  litebird_sim/mapmaking
  __init__.py
  binner.py 86-90
  common.py 167, 181-182, 201-228
  destriper.py
  h_maps.py 65-68, 109-126, 147-153, 167-181, 187-191, 197-203, 216-231, 279-376, 393-408
Project Total  

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

Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

@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))

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