Skip to content

Commit cd56544

Browse files
committed
BUG: fixed __calculate_rail_button_forces() by assigning a Function(0) to null_force instead of an empty array
1 parent 9b32181 commit cd56544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/simulation/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,7 @@ def __calculate_rail_button_forces(self): # TODO: complex method.
29542954
Rail Button 2 force in the 2 direction
29552955
"""
29562956
# First check for no rail phase or rail buttons
2957-
null_force = []
2957+
null_force = Function(0)
29582958
if self.out_of_rail_time_index == 0: # No rail phase, no rail button forces
29592959
warnings.warn(
29602960
"Trying to calculate rail button forces without a rail phase defined."

0 commit comments

Comments
 (0)