Skip to content

Commit c438427

Browse files
authored
Bug: Fix StochasticFlight time_overshoot None bug (#805)
* BUG: fix parachute bug by setting time_overshoot to base flight when it is None * MNT: update changelog
1 parent c674725 commit c438427

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Attention: The newest changes should be on top -->
3232

3333
### Added
3434

35+
- BUG: Fix StochasticFlight time_overshoot None bug [#805] (https://github.com/RocketPy-Team/RocketPy/pull/805)
3536
- ENH: Implement Multivariate Rejection Sampling (MRS) [#738] (https://github.com/RocketPy-Team/RocketPy/pull/738)
3637
- ENH: Create a rocketpy file to store flight simulations [#800](https://github.com/RocketPy-Team/RocketPy/pull/800)
3738
- ENH: Support for the RSE file format has been added to the library [#798](https://github.com/RocketPy-Team/RocketPy/pull/798)

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)