Skip to content

Commit f27b6f7

Browse files
committed
format
1 parent f6444ed commit f27b6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compas/files/gltf/gltf_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def rotation(self, value):
162162
if self._matrix:
163163
raise Exception("Cannot set rotation when matrix is set.")
164164
if not isinstance(value, list) or len(value) != 4 or fabs(sum([q**2 for q in value]) - 1) > 1e-03:
165-
raise Exception("Invalid rotation. Rotations are expected to be given as " "unit quaternions of the form [q1, q2, q3, q4]")
165+
raise Exception("Invalid rotation. Rotations are expected to be given as unit quaternions of the form [q1, q2, q3, q4]")
166166
self._rotation = value
167167

168168
@property
@@ -199,7 +199,7 @@ def matrix(self, value):
199199
raise Exception("Invalid matrix. A 4x4 matrix is expected.")
200200
if value[3] != [0, 0, 0, 1]:
201201
raise Exception(
202-
"Invalid matrix. A matrix without shear or skew is expected. It must be of " "the form TRS, where T is a translation, R is a rotation and S is a scaling."
202+
"Invalid matrix. A matrix without shear or skew is expected. It must be of the form TRS, where T is a translation, R is a rotation and S is a scaling."
203203
)
204204
self._matrix = value
205205

0 commit comments

Comments
 (0)