Skip to content

BUG: stop dict_generator from sampling initial_solution (#1109) - #1122

Open
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:bug/1109-dict-generator-initial-solution
Open

BUG: stop dict_generator from sampling initial_solution (#1109)#1122
thatrandomasiandev wants to merge 1 commit into
RocketPy-Team:developfrom
thatrandomasiandev:bug/1109-dict-generator-initial-solution

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

StochasticModel.dict_generator treated every instance tuple/list as a stochastic input, so a 14-tuple initial_solution crashed ('float' object is not callable) and list form silently sampled one element.

Fixes #1109

New behavior

dict_generator samples only declared constructor stochastic inputs. StochasticFlight validates initial_solution on construct and never puts it in the generated dict.

Breaking change

  • No

Additional information

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

…m#1109)

Generate stochastic samples from declared constructor inputs only, and
validate StochasticFlight.initial_solution on construct.
@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