bilby.gw.source.supernova

bilby.gw.source.supernova(frequency_array, luminosity_distance, **kwargs)[source]

A source model that reads a simulation from a text file.

This was originally intended for use with supernova simulations, but can be applied to any source class.

Parameters:
frequency_array: array-like

Unused

file_path: str

Path to the file containing the NR simulation. The format of this file should be readable by numpy.loadtxt and have four columns containing the real and imaginary components of the plus and cross polarizations.

luminosity_distance: float

The distance to the source in kpc, this scales the amplitude of the signal. The simulation is assumed to be at 10kpc.

kwargs:

extra keyword arguments, this should include the file_path

Returns:
dict:

A dictionary containing the plus and cross components of the signal.