@@ -759,11 +759,12 @@ def __simulate(self, verbose):
759759 lambda self , parachute_porosity = parachute .porosity : setattr (
760760 self , "parachute_porosity" , parachute_porosity
761761 ),
762- lambda self ,
763- added_mass_coefficient = parachute .added_mass_coefficient : setattr (
764- self ,
765- "parachute_added_mass_coefficient" ,
766- added_mass_coefficient ,
762+ lambda self , added_mass_coefficient = parachute .added_mass_coefficient : (
763+ setattr (
764+ self ,
765+ "parachute_added_mass_coefficient" ,
766+ added_mass_coefficient ,
767+ )
767768 ),
768769 ]
769770 self .flight_phases .add_phase (
@@ -981,11 +982,12 @@ def __check_and_handle_parachute_triggers(
981982 lambda self , parachute_porosity = parachute .porosity : setattr (
982983 self , "parachute_porosity" , parachute_porosity
983984 ),
984- lambda self ,
985- added_mass_coefficient = parachute .added_mass_coefficient : setattr (
986- self ,
987- "parachute_added_mass_coefficient" ,
988- added_mass_coefficient ,
985+ lambda self , added_mass_coefficient = parachute .added_mass_coefficient : (
986+ setattr (
987+ self ,
988+ "parachute_added_mass_coefficient" ,
989+ added_mass_coefficient ,
990+ )
989991 ),
990992 ]
991993 self .flight_phases .add_phase (
@@ -1387,11 +1389,12 @@ def __check_overshootable_parachute_triggers(
13871389 lambda self , parachute_porosity = parachute .porosity : setattr (
13881390 self , "parachute_porosity" , parachute_porosity
13891391 ),
1390- lambda self ,
1391- added_mass_coefficient = parachute .added_mass_coefficient : setattr (
1392- self ,
1393- "parachute_added_mass_coefficient" ,
1394- added_mass_coefficient ,
1392+ lambda self , added_mass_coefficient = parachute .added_mass_coefficient : (
1393+ setattr (
1394+ self ,
1395+ "parachute_added_mass_coefficient" ,
1396+ added_mass_coefficient ,
1397+ )
13951398 ),
13961399 ]
13971400 self .flight_phases .add_phase (
@@ -3159,7 +3162,7 @@ def max_acceleration_power_off_time(self):
31593162 max_acceleration_time_index = np .argmax (
31603163 self .acceleration [burn_out_time_index :, 1 ]
31613164 )
3162- return self .acceleration [max_acceleration_time_index , 0 ]
3165+ return self .acceleration [burn_out_time_index + max_acceleration_time_index , 0 ]
31633166
31643167 @cached_property
31653168 def max_acceleration_power_off (self ):
@@ -4586,7 +4589,6 @@ def merge(self):
45864589 tmp_dict [time ]._controllers += node ._controllers
45874590 tmp_dict [time ].callbacks += node .callbacks
45884591 tmp_dict [time ]._component_sensors += node ._component_sensors
4589- tmp_dict [time ]._controllers += node ._controllers
45904592 except KeyError :
45914593 # If the node does not exist, add it to the dictionary
45924594 tmp_dict [time ] = node
0 commit comments