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

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 14, 2022
1 parent d20f558 commit 7121195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7121195

Please sign in to comment.