Skip to content

Commit f86b028

Browse files
fix slow tests
1 parent 74d39f5 commit f86b028

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,8 +929,11 @@ def __check_and_handle_parachute_triggers(
929929
):
930930
continue # Check next parachute
931931

932-
# Remove parachute from flight parachutes
933-
self.parachutes.remove(parachute)
932+
# Remove parachute from flight parachutes (if not already removed)
933+
if parachute in self.parachutes:
934+
self.parachutes.remove(parachute)
935+
else:
936+
continue # Parachute already triggered, skip to next
934937

935938
# Create phase for time after detection and before inflation
936939
# Must only be created if parachute has any lag

0 commit comments

Comments
 (0)