revert to previous version of gammapy/image/basic.py
@@ -262,7 +262,7 @@ class IACTBasicImageEstimator(BasicImageEstimator):
counts.fill_events(events)
return counts
- def _acceptance_map(self, observation, counts, exposure, nbins=10):
+ def _acceptance_map(self, observation, counts, nbins=10):
"""Compute acceptance (normalized background map
Parameters
@@ -280,8 +280,7 @@ class IACTBasicImageEstimator(BasicImageEstimator):
acceptance.name = 'exposure_on'
offsets = observation.pointing_radec.separation(acceptance.coordinates())
- print(offsets.shape)
-# print(observation.bkg)
+
# This is a somewhat dirty approach to deal with the different background IRFs
try:
if isinstance(observation.bkg, Background3D):
@@ -322,7 +321,7 @@ class IACTBasicImageEstimator(BasicImageEstimator):
input_images['counts'] = counts
input_images['exposure'] = exposure
- exposure_on = self._acceptance_map(observation, counts, exposure)
+ exposure_on = self._acceptance_map(observation, counts)
not_has_exposure = ~(exposure.data > 0)
exposure_on.data[not_has_exposure] = 0
input_images['exposure_on'] = exposure_on
