transition code

This commit is contained in:
Martin Diehl 2020-05-20 00:17:45 +02:00
parent 1fa4a07bb8
commit 1d8903bb0c
1 changed files with 4 additions and 1 deletions

View File

@ -316,8 +316,11 @@ class Rotation:
@staticmethod
def from_quaternion(quaternion,
accept_homomorph = False,
P = -1):
P = -1,
acceptHomomorph = None):
if acceptHomomorph is not None:
accept_homomorph = acceptHomomorph
qu = np.array(quaternion,dtype=float)
if qu.shape[:-2:-1] != (4,):
raise ValueError('Invalid shape.')