From 7457c56dad08704b05ec972d71de40d3174c6b5e Mon Sep 17 00:00:00 2001 From: "Peter T. H. Pang" Date: Mon, 26 Aug 2024 13:13:21 +0200 Subject: [PATCH] Fixing phase inverse transformation --- src/jimgw/single_event/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jimgw/single_event/transforms.py b/src/jimgw/single_event/transforms.py index 084fe368..1070adaf 100644 --- a/src/jimgw/single_event/transforms.py +++ b/src/jimgw/single_event/transforms.py @@ -332,7 +332,7 @@ def named_inverse_transform(x): R_det_arg = _calc_R_det_arg( x["ra"], x["dec"], x["psi"], x["iota"], self.gmst ) - phase_c = -R_det_arg + x["phase_det"] * 2.0 + phase_c = (-R_det_arg + x["phase_det"]) * 2.0 return { "phase_c": phase_c % (2.0 * jnp.pi), }