@@ -292,11 +292,25 @@ def __init__( # pylint: disable=too-many-statements
292292 self .I_12_without_motor = inertia [3 ]
293293 self .I_13_without_motor = inertia [4 ]
294294 self .I_23_without_motor = inertia [5 ]
295- inertia_matrix = Matrix ([
296- [self .I_11_without_motor , self .I_12_without_motor , self .I_13_without_motor ],
297- [self .I_12_without_motor , self .I_22_without_motor , self .I_23_without_motor ],
298- [self .I_13_without_motor , self .I_23_without_motor , self .I_33_without_motor ],
299- ]) # Initial Inertia Tensor determinant singularity check
295+ inertia_matrix = Matrix (
296+ [
297+ [
298+ self .I_11_without_motor ,
299+ self .I_12_without_motor ,
300+ self .I_13_without_motor ,
301+ ],
302+ [
303+ self .I_12_without_motor ,
304+ self .I_22_without_motor ,
305+ self .I_23_without_motor ,
306+ ],
307+ [
308+ self .I_13_without_motor ,
309+ self .I_23_without_motor ,
310+ self .I_33_without_motor ,
311+ ],
312+ ]
313+ ) # Initial Inertia Tensor determinant singularity check
300314 if abs (inertia_matrix ) == 0 :
301315 raise ValueError (
302316 "The rocket inertia tensor is singular (determinant is zero). "
0 commit comments