Skip to content

Commit 7ba5a7d

Browse files
committed
BUG: fix parachute bug by setting time_overshoot to base flight when it is None
1 parent c674725 commit 7ba5a7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rocketpy/stochastic/stochastic_flight.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def __init__(
8787

8888
self.initial_solution = initial_solution
8989
self.terminate_on_apogee = terminate_on_apogee
90-
self.time_overshoot = time_overshoot
90+
if time_overshoot is None:
91+
self.time_overshoot = flight.time_overshoot
92+
else:
93+
self.time_overshoot = time_overshoot
9194

9295
def _validate_initial_solution(self, initial_solution):
9396
if initial_solution is not None:

0 commit comments

Comments
 (0)