Skip to content

Commit bd86d92

Browse files
committed
Make PR307 and 301 compatible. In PR307 "exposure" has units, while the changes in PR301 assumed "exposure" as in seconds and added the units, causing the tests to fail.
1 parent 1da9325 commit bd86d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cosipy/response/FullDetectorResponse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def _sum_rot_hist(h, h_new, exposure, coord, pa_convention, axis = "PsiChi"):
11781178
old_index = (slice(None),)*axis_id + (old_pix,)
11791179
new_index = (slice(None),)*axis_id + (new_pix,)
11801180

1181-
h_new[new_index] += exposure * u.s * h[old_index] # * norm_corr
1181+
h_new[new_index] += exposure * h[old_index] # * norm_corr
11821182

11831183
else:
11841184

@@ -1194,7 +1194,7 @@ def _sum_rot_hist(h, h_new, exposure, coord, pa_convention, axis = "PsiChi"):
11941194
old_index = (slice(None),)*axis_id + (old_pix,) + (slice(None),)*(pol_axis_id-axis_id-1) + (old_pol_bin,)
11951195
new_index = (slice(None),)*axis_id + (new_pix,) + (slice(None),)*(pol_axis_id-axis_id-1) + (new_pol_bin,)
11961196

1197-
h_new[new_index] += exposure * u.s * h[old_index] # * norm_corr
1197+
h_new[new_index] += exposure * h[old_index] # * norm_corr
11981198

11991199

12001200
def __str__(self):

0 commit comments

Comments
 (0)