From 1d8903bb0c26f8094ac859936c9089f2985891f6 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 20 May 2020 00:17:45 +0200 Subject: [PATCH] transition code --- python/damask/_rotation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/damask/_rotation.py b/python/damask/_rotation.py index 31732015e..d2698fd52 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -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.')