.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/miscellaneous/range-spectrogram.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_miscellaneous_range-spectrogram.py: .. sectionauthor:: Alex Urban Estimating the spectral contribution to inspiral range ###################################################### :ref:`sphx_glr_examples_miscellaneous_range-timeseries.py` shows how the binary neutron star (BNS) inspiral range of a gravitational-wave detector can be measured directly from the strain readout. In this example, we estimate the average spectral contribution to BNS range from the strain record surrounding GW170817 using :func:`gwpy.astro.range_spectrogram`. .. GENERATED FROM PYTHON SOURCE LINES 35-40 Data access ----------- First, we need to load some data. For this we can `fetch` the `public data `__ around the |GW170817|_ BNS merger: .. GENERATED FROM PYTHON SOURCE LINES 40-44 .. code-block:: Python from gwpy.timeseries import TimeSeries l1 = TimeSeries.fetch_open_data("L1", 1187006834, 1187010930) .. GENERATED FROM PYTHON SOURCE LINES 45-49 Generate a range `Spectrogram` ------------------------------ Then, we can calculate a `Spectrogram` of the inspiral range amplitude spectrum: .. GENERATED FROM PYTHON SOURCE LINES 49-53 .. code-block:: Python from gwpy.astro import range_spectrogram l1spec = range_spectrogram(l1, 30, fftlength=4, fmin=15, fmax=500) ** (1./2) .. rst-class:: sphx-glr-script-out .. code-block:: none /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/inspiral_range/waveform.py:369: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. return np.sqrt(4*np.trapz((h**2)/psd, self.freq)) .. GENERATED FROM PYTHON SOURCE LINES 54-58 Visualisation ------------- We can plot this `Spectrogram` to visualise spectral variation in LIGO-Livingston's sensitivity in the hour or so surrounding GW170817: .. GENERATED FROM PYTHON SOURCE LINES 58-72 .. code-block:: Python plot = l1spec.plot(figsize=(12, 5)) ax = plot.gca() ax.set_yscale("log") ax.set_ylim(15, 500) ax.set_title("LIGO-Livingston sensitivity to BNS around GW170817") ax.set_epoch(1187008882) # <- set 0 on plot to GW170817 ax.colorbar( cmap="cividis", clim=(0, 16), label=r"BNS range amplitude spectral density [Mpc/$\sqrt{\mathrm{Hz}}$]", ) plot.show() .. image-sg:: /examples/miscellaneous/images/sphx_glr_range-spectrogram_001.png :alt: LIGO-Livingston sensitivity to BNS around GW170817 :srcset: /examples/miscellaneous/images/sphx_glr_range-spectrogram_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 73-77 Note, the extreme dip in sensitivity near GW170817 is caused by a loud, transient noise event, see `Phys. Rev. Lett. vol. 119, p. 161101 `_ for more information. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 2.351 seconds) .. _sphx_glr_download_examples_miscellaneous_range-spectrogram.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: range-spectrogram.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: range-spectrogram.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: range-spectrogram.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_