We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d39f5 commit f86b028Copy full SHA for f86b028
1 file changed
rocketpy/simulation/flight.py
@@ -929,8 +929,11 @@ def __check_and_handle_parachute_triggers(
929
):
930
continue # Check next parachute
931
932
- # Remove parachute from flight parachutes
933
- self.parachutes.remove(parachute)
+ # Remove parachute from flight parachutes (if not already removed)
+ if parachute in self.parachutes:
934
+ self.parachutes.remove(parachute)
935
+ else:
936
+ continue # Parachute already triggered, skip to next
937
938
# Create phase for time after detection and before inflation
939
# Must only be created if parachute has any lag
0 commit comments