`simulate_convergence()` cannot reproduce a study from a seed

Offen
#1,077 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@thc1006 arbeitet bereits daran.

Seit 16.9.2026.

  • #1198 von @thc1006 — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
backend

Rechercherichtung

Read the simulate_convergence() implementation and the existing simulate() seed handling, then check the separately filed append-root persistence work and issue #1054 for context. Verify how simulation roots are derived across batches and what changes when batch size varies; done means a seeded study reproduces the same samples regardless of batching.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Bug Monte Carlo
Context

simulate_convergence() runs batches of simulations by calling self.simulate(..., append=True) in a loop, but it has no random_seed parameter, so every batch derives a fresh root. A convergence study cannot be reproduced from a seed, and changing the batch size changes which roots each batch uses, so the same max_simulations does not map to the same set of samples.

A possible direction

Add a keyword-only random_seed to simulate_convergence() and use one root for the whole study, deriving each simulation's child from its absolute index the way simulate() already does. This leans on persisting the root for append (filed separately), so the two are probably best done together.

Noticed while reviewing #1054.

Vorherrschende Sprache
Python
Sterne
1.1k
Forks
280
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
24

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RocketPy-Team/RocketPy

Alle Issues in RocketPy-Team/RocketPy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.