Skip to content

Commit 6633196

Browse files
committed
Fixing Bug
1 parent a4dd9f8 commit 6633196

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scri/asymptotic_bondi_data/map_to_superrest_frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def transformation_from_CoM_charge(G, t, Gfun=None, Gparams0=None, Gargs=None):
342342
"""
343343

344344
if Gfun is None and Gargs is None:
345-
Gfun = lambda Gparams, time, *args: time[:, None] @ Gparams[:3][None, :] + Gparams[3:6][None, :]
345+
Gfun = lambda Gparams, time, *args: - time[:, None] @ Gparams[:3][None, :] + Gparams[3:6][None, :]
346346
Gargs = ()
347347

348348
Gparams0 = np.zeros(6) if Gparams0 is None else Gparams0
@@ -353,7 +353,7 @@ def transformation_from_CoM_charge(G, t, Gfun=None, Gparams0=None, Gargs=None):
353353

354354
CoM_transformation = scri.bms_transformations.BMSTransformation(
355355
supertranslation=-np.insert(sf.vector_as_ell_1_modes(fit.x[3:6]), 0, 0),
356-
boost_velocity=fit.x[0:3],
356+
boost_velocity=-fit.x[0:3],
357357
order=["supertranslation", "boost_velocity", "frame_rotation"],
358358
)
359359
return CoM_transformation

0 commit comments

Comments
 (0)