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 being automatically set when rotati…
Browse files Browse the repository at this point in the history
…on vectors were passed
  • Loading branch information
daminton committed May 20, 2023
1 parent eff54b5 commit a2c5e54
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 @@ -283,7 +283,7 @@ def vec2xr(param: Dict, **kwargs: Any):
# Check for valid keyword arguments
kwargs = {k:kwargs[k] for k,v in kwargs.items() if v is not None}

if "rotation" in param and param['rotation'] == True:
if "ROTATION" in param and param['ROTATION'] == True:
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:
Expand Down

0 comments on commit a2c5e54

Please sign in to comment.