From 71211953e635f7bdfb210d86e395b06331916755 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Wed, 14 Dec 2022 18:35:24 -0500 Subject: [PATCH] Fixed typo --- python/swiftest/swiftest/simulation_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index 169bc1c0c..9666ca298 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -2409,7 +2409,7 @@ def input_to_array_3d(val,n=None): raise ValueError(f"Argument is an incorrect shape. Expected {(n,3)} or {(3,1)}. Got {val.shape} instead") elif val.shape == (3,): val = np.expand_dims(val,axis=0) - elif val.shape != (n,3) or val.shape != (3,n): + elif val.shape != (n,3) and val.shape != (3,n): raise ValueError(f"Argument is an incorrect shape. Expected {(n,3)} or {(3,n)}. Got {val.shape} instead") elif val.shape == (3,n): val = val.T