Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed units in the new edge case GMass calc
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 25, 2024
1 parent 86122b1 commit c486412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swiftest/init_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_Gmass(raw_response):
M = M.split('=')[1].strip().split(' ')[0].strip()
M = float(M) * mult * unit_conv
try:
return M * swiftest.GC
return M * swiftest.GC * 1e-9 # Return units of km**3 / s**2 for consistency
except:
return None
return None
Expand Down Expand Up @@ -537,4 +537,4 @@ def vec2xr(param: Dict, **kwargs: Any):
)
ds = xr.combine_by_coords([ds, clm_xr])

return ds
return ds

0 comments on commit c486412

Please sign in to comment.