From bfae88a364b2c738301ea4dbe403eb4a2fabc0da Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 26 Jun 2020 11:45:30 +0200 Subject: [PATCH] numpy compatible --- 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 335d28b3b..305460a5f 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -155,7 +155,7 @@ class Rotation: def broadcast_to(self,shape): - if isinstance(shape,int): shape = (shape,) + if isinstance(shape,(int,np.integer)): shape = (shape,) if self.shape == (): q = np.broadcast_to(self.quaternion,shape+(4,)) else: