From d745a162ec4c40e8f20a105d4bb34272e68530d5 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Tue, 3 Jan 2023 18:24:14 -0500 Subject: [PATCH] Fixed typo that prevented Ip from having the correct shape when it is not explicitly passed by the user --- 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 02ff6f8e1..6f513b274 100644 --- a/python/swiftest/swiftest/init_cond.py +++ b/python/swiftest/swiftest/init_cond.py @@ -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])