Skip to content

Commit ba3bfd3

Browse files
committed
DOC: say what an append carries where it said otherwise
The seed docstring still pointed at #1075 as future work and the stochastic guide still asked for the same seed again; this branch is what changed both. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
1 parent d0f51e6 commit ba3bfd3

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Attention: The newest changes should be on top -->
3232

3333
### Added
3434

35+
- ENH: Continue a Monte Carlo study from the root its rows were drawn with [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1075](https://github.com/RocketPy-Team/RocketPy/issues/1075)
3536
- ENH: Reproducible Monte Carlo through per-simulation-index seeding [#1054](https://github.com/RocketPy-Team/RocketPy/pull/1054) [#1053](https://github.com/RocketPy-Team/RocketPy/issues/1053)
3637
- ENH: Support fixed-time parachute deployment triggers [#1133](https://github.com/RocketPy-Team/RocketPy/pull/1133) [#437](https://github.com/RocketPy-Team/RocketPy/issues/437)
3738
- DOC: Add SIL parachute ejection integration example [#1131](https://github.com/RocketPy-Team/RocketPy/pull/1131) [#524](https://github.com/RocketPy-Team/RocketPy/issues/524)

‎docs/user/stochastic.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ better reflecting the inherent uncertainties in rocketry.
294294
A whole run is fixed by ``MonteCarlo.simulate(random_seed=...)`` rather than
295295
by seeding these models yourself. Each simulation takes its seed from its
296296
own index, so simulation 7 draws the same inputs whether the run was serial
297-
or split over any number of workers, and appending with the same seed
298-
carries the same stream on. Without it a run draws fresh entropy and
299-
reproduces nothing.
297+
or split over any number of workers. Every input row records the root it
298+
came from, so appending carries that study on whether or not the seed is
299+
given again, and a different one is refused rather than mixed in. Without
300+
a seed a run draws fresh entropy and reproduces nothing.

‎rocketpy/simulation/monte_carlo.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,9 @@ def simulate(
414414
sampling. Keyword-only. Default is None, which draws fresh entropy
415415
and reproduces nothing.
416416
417-
Appending continues the same stream when the same seed is given
418-
again, since an index maps to a seed and to nothing else. Nothing
419-
here records the seed, so nothing here can tell you that a later
420-
append was given the same one; that is #1075.
417+
Every input row carries the root it was drawn from, so an append
418+
carries on from the study already in the file whether or not the
419+
seed is given again. A different one is refused, not mixed in.
421420
422421
A ``Generator`` or ``BitGenerator`` is refused rather than read.
423422
Pass the seed it was built from.

0 commit comments

Comments
 (0)