Skip to content

Commit

Permalink
obs.net_ukrts has to be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
nraffuzz authored Oct 16, 2023
1 parent 8f9c061 commit 54258e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litebird_sim/mapmaking/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def get_map_making_weights(obs: Observation, check: bool) -> npt.NDArray:
proceed; if not, an `assert` is raised.
"""

if isinstance(obs.net_ukrts, (float, int)):
obs.net_ukrts = obs.net_ukrts * np.ones(obs.n_detectors)
try:
weights = obs.sampling_rate_hz * obs.net_ukrts**2
except AttributeError:
Expand Down

0 comments on commit 54258e8

Please sign in to comment.