You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0a1a5a4
Browse filesBrowse the repository at this point in the historyBrowse files
StochasticParachute.create_object() builds a Parachute from a complete draw.
StochasticRocket.create_object() threw it away and built a second one from six
of its ten fields, so radius, height, porosity and the drag coefficient never
left last_rnd_dict. Parachute re-derived radius from cd_s and the default drag
coefficient, and height fell back to that radius.
Randomizing the geometry was not required to hit it. A parachute configured
with an explicit radius of 2.0 flew 1.519 in every simulation, because the
value was dropped on the way to add_parachute rather than sampled away.
Attaching the object _create_parachute already built fixes both, and stops
Parachute.__init__ running twice per parachute per simulation. The second run
drew the initial pressure noise from the global NumPy RNG again (#1091).
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
0 commit comments