From 0a31ff098050b08f4eb854a228913f1e2c5d0ba5 Mon Sep 17 00:00:00 2001 From: Daniel Otto de Mentock Date: Thu, 6 Jan 2022 14:33:41 +0100 Subject: [PATCH] added type:ignore statement to broken line --- 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 448917488..d50b25c54 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -952,7 +952,7 @@ class Rotation: """ rng: np.random.Generator = np.random.default_rng(rng_seed) - r = rng.random(3 if shape is None else tuple(shape)+(3,) if hasattr(shape, '__iter__') else (shape,3)) + r = rng.random(3 if shape is None else tuple(shape)+(3,) if hasattr(shape, '__iter__') else (shape,3)) #type: ignore A = np.sqrt(r[...,2]) B = np.sqrt(1.0-r[...,2])