From a2c5e5465f5f2e2172cb24472c32f1c92a01aaae Mon Sep 17 00:00:00 2001 From: David A Minton Date: Fri, 19 May 2023 23:01:01 -0400 Subject: [PATCH] Fixed typo that prevented Ip from being automatically set when rotation vectors were passed --- python/swiftest/swiftest/init_cond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/swiftest/swiftest/init_cond.py b/python/swiftest/swiftest/init_cond.py index efaa6429f..1b140f119 100644 --- a/python/swiftest/swiftest/init_cond.py +++ b/python/swiftest/swiftest/init_cond.py @@ -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: