From 33731e4948078e79f6710bdbc979730ecb3a7997 Mon Sep 17 00:00:00 2001 From: Daniel Otto de Mentock Date: Fri, 28 Jan 2022 15:15:20 +0100 Subject: [PATCH] adjusted bracket error in from_fiber_component --- python/damask/_rotation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_rotation.py b/python/damask/_rotation.py index 468fef2c5..b55f178f7 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -1107,7 +1107,7 @@ class Rotation: """ rng = np.random.default_rng(rng_seed) sigma_: np.ndarray; alpha_: np.ndarray; beta_: np.ndarray - sigma_,alpha_,beta_ = (np.radians(coordinate for coordinate in (sigma,alpha,beta))) if degrees else (sigma,alpha,beta) #type: ignore + sigma_,alpha_,beta_ = (np.radians(coordinate) for coordinate in (sigma,alpha,beta)) if degrees else (sigma,alpha,beta) #type: ignore d_cr = np.array([np.sin(alpha_[0])*np.cos(alpha_[1]), np.sin(alpha_[0])*np.sin(alpha_[1]), np.cos(alpha_[0])]) d_lab = np.array([np.sin( beta_[0])*np.cos( beta_[1]), np.sin( beta_[0])*np.sin( beta_[1]), np.cos( beta_[0])])