code: def sum_over_energy(self):
          
          # We sum over axis 0 in the array, and drop the energy binning in the
          # hpx object
          return HpxMap(np.sum(self.counts, axis=0), self.hpx.copy_and_drop_energy())
docs: Reduce a counts cube to a counts map