GWForge.ifo.detectors¶
Classes¶
Functions¶
|
Load a GWForge XG |
Module Contents¶
- GWForge.ifo.detectors.load_xg_interferometer(filename, power_spectral_density)[source]¶
Load a GWForge XG
.ifofile, attachingpower_spectral_density.This mirrors
bilby.gw.detector.load_interferometer’s tiny key = value parser but injects a valid PSD before the interferometer is constructed. Two things make this necessary rather than a plainload_interferometer:bilby’s
TriangularInterferometerindexespower_spectral_density[ii]for each of the three arms, so a.ifofile carryingpower_spectral_density = None(as ET does) raises aTypeErrorat load time.even for a single detector the PSD has to reach the interferometer(s), not just the enclosing list, so we set it explicitly on every arm.
- Parameters:
filename (str) – Path to the
.ifofile.power_spectral_density (bilby.gw.detector.psd.PowerSpectralDensity) – The PSD to attach to the interferometer (all three arms for a triangle).
- Return type:
bilby.gw.detector.Interferometer or bilby.gw.detector.networks.TriangularInterferometer
- class GWForge.ifo.detectors.IFO(name, psd_file=None, asharp=None)[source]¶
Examples
>>> ifo = IFO(name='H1', asharp=True) >>> ifo.initialise_ifo(seed=42)
>>> ifo = IFO(name='ET') >>> ifo.initialize_ifo()
- initialise_ifo(seed=None)[source]¶
Initialise the interferometer with optional random seed.
- Parameters:
seed (int (optional)) – The random seed for initialisation. [Default: None]
- Returns:
ifo
- Return type:
bilby.gw.detector.Intereferometer
- Raises:
ValueError – If the interferometer is not implemented.: