Esempio n. 1
0
def inverse_transform_precessing_spins(iota, spin_1x, spin_1y, \
                                       spin_1z, spin_2x, spin_2y, \
                                       spin_2z, mass_1, mass_2, \
                                       reference_frequency, phase):

    args_list = bu.convert_args_list_to_float(
        iota, spin_1x, spin_1y, spin_1z, spin_2x, spin_2y, spin_2z, 
        mass_1, mass_2, reference_frequency, phase)
    results = lalsim.SimInspiralTransformPrecessingWvf2PE(*args_list)
    theta_jn, phi_jl, tilt_1, tilt_2, phi_12, a_1, a_2 = (results)

    return theta_jn, phi_jl, tilt_1, tilt_2, phi_12, a_1, a_2
Esempio n. 2
0
 def test_convert_args_list_to_float(self):
     self.assertEqual(
         gwutils.convert_args_list_to_float(1, "2", 3.0), [1.0, 2.0, 3.0]
     )
     with self.assertRaises(ValueError):
         gwutils.convert_args_list_to_float(1, "2", "ten")