Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Attention: The newest changes should be on top -->
### Changed

-
- ENH: Initial solution from flights gets previous results [#568](https://github.com/RocketPy-Team/RocketPy/pull/568)
- DOC: New Environment class docs pages [#644](https://github.com/RocketPy-Team/RocketPy/pull/644)

### Fixed
Expand Down
1 change: 1 addition & 0 deletions rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ def __init_flight_state(self):
elif isinstance(self.initial_solution, Flight):
# Initialize time and state variables based on last solution of
# previous flight
self.solution = self.initial_solution.solution[:-1]
self.initial_solution = self.initial_solution.solution[-1]
# Set unused monitors
self.out_of_rail_state = self.initial_solution[1:]
Expand Down