def test_cum_beam_block_frac(self): """ Test whether local maxima BEFORE the absolute maximum along a beam are correctly dealt with. """ cbb = qual.cum_beam_block_frac(self.sample_pbb) self.assertTrue(np.allclose(cbb, self.sample_cbb))