numpy compatible

This commit is contained in:
Martin Diehl 2020-06-26 11:45:30 +02:00
parent bddb514072
commit bfae88a364
1 changed files with 1 additions and 1 deletions

View File

@ -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: