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

Commit

Permalink
Fixed typo that prevented Ip from having the correct shape when it is…
Browse files Browse the repository at this point in the history
… not explicitly passed by the user
  • Loading branch information
daminton committed Jan 3, 2023
1 parent c351cab commit d745a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/init_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def vec2xr(param: Dict, **kwargs: Any):
if "rot" not in kwargs and "Gmass" in kwargs:
kwargs['rot'] = np.zeros((len(kwargs['Gmass']),3))
if "Ip" not in kwargs and "Gmass" in kwargs:
kwargs['Ip'] = np.full_like(kwargs['Gmass'], 0.4)
kwargs['Ip'] = np.full((len(kwargs['Gmass']),3), 0.4)

if "time" not in kwargs:
kwargs["time"] = np.array([0.0])
Expand Down

0 comments on commit d745a16

Please sign in to comment.