@@ -764,8 +764,7 @@ def __simulate(self, verbose):
764764 lambda self , parachute_porosity = parachute .porosity : setattr (
765765 self , "parachute_porosity" , parachute_porosity
766766 ),
767- lambda self ,
768- added_mass_coefficient = parachute .added_mass_coefficient : (
767+ lambda self , added_mass_coefficient = parachute .added_mass_coefficient : (
769768 setattr (
770769 self ,
771770 "parachute_added_mass_coefficient" ,
@@ -1887,7 +1886,9 @@ def udot_rail2(self, t, u, post_processing=False): # pragma: no cover
18871886 # Hey! We will finish this function later, now we just can use u_dot
18881887 return self .u_dot_generalized (t , u , post_processing = post_processing )
18891888
1890- def u_dot (self , t , u , post_processing = False ): # pylint: disable=too-many-locals,too-many-statements
1889+ def u_dot (
1890+ self , t , u , post_processing = False
1891+ ): # pylint: disable=too-many-locals,too-many-statements
18911892 """Calculates derivative of u state vector with respect to time
18921893 when rocket is flying in 6 DOF motion during ascent out of rail
18931894 and descent without parachute.
@@ -2453,7 +2454,9 @@ def u_dot_generalized_3dof(self, t, u, post_processing=False):
24532454
24542455 return u_dot
24552456
2456- def u_dot_generalized (self , t , u , post_processing = False ): # pylint: disable=too-many-locals,too-many-statements
2457+ def u_dot_generalized (
2458+ self , t , u , post_processing = False
2459+ ): # pylint: disable=too-many-locals,too-many-statements
24572460 """Calculates derivative of u state vector with respect to time when the
24582461 rocket is flying in 6 DOF motion in space and significant mass variation
24592462 effects exist. Typical flight phases include powered ascent after launch
@@ -4438,9 +4441,7 @@ def add(self, flight_phase, index=None): # TODO: quite complex method
44384441 new_index = (
44394442 index - 1
44404443 if flight_phase .t < previous_phase .t
4441- else index + 1
4442- if flight_phase .t > next_phase .t
4443- else index
4444+ else index + 1 if flight_phase .t > next_phase .t else index
44444445 )
44454446 flight_phase .t += adjust
44464447 self .add (flight_phase , new_index )
0 commit comments