Skip to content

BUG: evaluate parachute triggers once per time node (#1086) - #1121

Open
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:bug/1086-parachute-double-eval
Open

BUG: evaluate parachute triggers once per time node (#1086)#1121
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:bug/1086-parachute-double-eval

Conversation

@thatrandomasiandev

Copy link
Copy Markdown

Pull request type

  • Code changes (bug fix, features)

Checklist

  • Tests for the changes have been added (if needed)
  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/ / make lint) has passed locally
  • All tests (pytest tests -m slow --runslow) have passed locally
  • CHANGELOG.md — no action needed; an LLM workflow auto-updates it after merge

Current behavior

Each time node evaluated parachute triggers twice: an inline loop in Flight.__simulate and again in __check_and_handle_parachute_triggers.

Fixes #1086

New behavior

The inline loop is removed; only __check_and_handle_parachute_triggers runs per node. Regression test asserts one call per sampled height.

Breaking change

  • No

Additional information

Focused unit tests added/extended; full slow suite not run in this contribution pass.

Remove the duplicate inline parachute loop in Flight.__simulate; keep
only __check_and_handle_parachute_triggers.
@thatrandomasiandev
thatrandomasiandev requested a review from a team as a code owner August 11, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant