Skip to content

Commit

Permalink
Fixed bug where background only used gh-cuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobychev authored and LukasBeiske committed Apr 29, 2024
1 parent d8f24d7 commit 32f309b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctapipe/irf/irfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, parent, valid_offset, **kwargs):
# check_bins_in_range(self.fov_offset_bins, self.valid_offset)

def make_bkg3d_table_hdu(self, bkg_events, obs_time):
sel = bkg_events["selected_gh"]
sel = bkg_events["selected"]
self.log.debug("%d background events selected" % sel.sum())
self.log.debug("%f obs time" % obs_time.to_value(u.h))
background_rate = background_3d(
Expand Down Expand Up @@ -211,7 +211,7 @@ def __init__(self, parent, valid_offset, **kwargs):
# check_bins_in_range(self.fov_offset_bins, self.valid_offset)

def make_bkg2d_table_hdu(self, bkg_events, obs_time):
sel = bkg_events["selected_gh"]
sel = bkg_events["selected"]
self.log.debug("%d background events selected" % sel.sum())
self.log.debug("%f obs time" % obs_time.to_value(u.h))

Expand Down

0 comments on commit 32f309b

Please sign in to comment.