ml4gw.waveforms.conversion

Functions

XLALSimInspiralLN(total_mass, eta, v)

See https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/lib/LALSimInspiralPNCoefficients.c#L2173

XLALSimInspiralL_2PN(eta)

See https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/lib/LALSimInspiralPNCoefficients.c#L2181

bilby_spins_to_lalsim(theta_jn, phi_jl, ...)

Converts between bilby spin and lalsimulation spin conventions.

chirp_mass_and_mass_ratio_to_components(...)

Compute component masses from chirp mass and mass ratio.

rotate_y(angle, x, y, z)

rotate_z(angle, x, y, z)

ml4gw.waveforms.conversion.XLALSimInspiralLN(total_mass, eta, v)

See https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/lib/LALSimInspiralPNCoefficients.c#L2173

Parameters:
  • total_mass (Float[Tensor, 'batch'])

  • eta (Float[Tensor, 'batch'])

  • v (Float[Tensor, 'batch'])

ml4gw.waveforms.conversion.XLALSimInspiralL_2PN(eta)

See https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/lib/LALSimInspiralPNCoefficients.c#L2181

Parameters:

eta (Float[Tensor, 'batch'])

ml4gw.waveforms.conversion.bilby_spins_to_lalsim(theta_jn, phi_jl, tilt_1, tilt_2, phi_12, a_1, a_2, mass_1, mass_2, f_ref, phi_ref)

Converts between bilby spin and lalsimulation spin conventions.

See https://github.com/bilby-dev/bilby/blob/cccdf891e82d46319e69dbfdf48c4970b4e9a727/bilby/gw/conversion.py#L105 and https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/lib/LALSimInspiral.c#L3594

Parameters:
  • theta_jn (Float[Tensor, 'batch']) -- BatchTensor,

  • phi_jl (Float[Tensor, 'batch']) -- BatchTensor,

  • tilt_1 (Float[Tensor, 'batch']) -- BatchTensor,

  • tilt_2 (Float[Tensor, 'batch']) -- BatchTensor,

  • phi_12 (Float[Tensor, 'batch']) -- BatchTensor,

  • a_1 (Float[Tensor, 'batch']) -- BatchTensor,

  • a_2 (Float[Tensor, 'batch']) -- BatchTensor,

  • mass_1 (Float[Tensor, 'batch']) -- BatchTensor,

  • mass_2 (Float[Tensor, 'batch']) -- BatchTensor,

  • f_ref (float) -- float,

  • phi_ref (Float[Tensor, 'batch']) -- BatchTensor,

ml4gw.waveforms.conversion.chirp_mass_and_mass_ratio_to_components(chirp_mass, mass_ratio)

Compute component masses from chirp mass and mass ratio.

Parameters:
  • chirp_mass (Float[Tensor, 'batch']) -- Tensor of chirp mass values

  • mass_ratio (Float[Tensor, 'batch']) -- Tensor of mass ratio values, m2 / m1, where m1 >= m2, so that mass_ratio <= 1

ml4gw.waveforms.conversion.rotate_y(angle, x, y, z)
ml4gw.waveforms.conversion.rotate_z(angle, x, y, z)
Parameters:

angle (Float[Tensor, 'batch'])