def sum_over_energy(self):
        """ Reduce a counts cube to a counts map """
        # 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())
def sum_over_energy ( self ) : return HpxMap ( np . sum ( self . counts , axis = 0 ) , self . hpx . copy_and_drop_energy ( ) )
Reduce a counts cube to a counts map