def test_burst_range(psd): """Test for :func:`gwpy.astro.burst_range` """ r = astro.burst_range(psd[psd.frequencies.value < 1000]) utils.assert_quantity_almost_equal(r, TEST_RESULTS['burst_range'])
def test_burst_range(self): r = astro.burst_range(self.psd[self.psd.frequencies.value < 1000]) self.assertEqual(r.unit, units.Mpc) self.assertAlmostEqual(r.value, 13.813232309724613) return r
def test_burst_range(psd): """Test for :func:`gwpy.astro.burst_range` """ r = astro.burst_range(psd.crop(None, 1000)[1:]) utils.assert_quantity_almost_equal(r, TEST_RESULTS['burst_range'])