Skip to content

Commit

Permalink
Make sure exposure maps don't fail if there's no dither
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Mar 6, 2024
1 parent 73cb4f0 commit f918476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soxs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def make_exposure_map(
y_mid = 0.5 * (y_edges[1:] + y_edges[:-1]) / reblock
else:
asphist = exp_time * np.ones((1, 1))
x_mid = np.zeros(nhistx)
y_mid = np.zeros(nhisty)

# Determine the effective area
eff_area = arf.interpolate_area(energy).value
Expand Down

0 comments on commit f918476

Please sign in to comment.