From a138cb5a45a398ce177eb8c8cd1ef19e08cd587a Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Thu, 19 Nov 2026 21:28:41 -0300 Subject: [PATCH 1/2] DOC: backfill the v1.14.0 changelog The changelog automation has not run since #1112, so the PRs merged into develop after it were missing from [Unreleased]. Add them, add the entries for #1225, #1226 and #1227, update the tip-off, tube-fins and parachute-seed entries to what the release ships, and drop the raw commit link, the back-merge entry and the duplicate StochasticFreeFormFins entry. Related to #1209 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XDW575d9C9zpS7Z1v2KXVq --- CHANGELOG.md | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a54c868e0..58f2cf10a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,26 +32,27 @@ Attention: The newest changes should be on top --> ### Added -- ENH: Accept `random_seed` in `MonteCarlo.simulate_convergence`, including across batches. [#1198](https://github.com/RocketPy-Team/RocketPy/pull/1198) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) +- ENH: Add `Flight.plots.trajectory_on_map()`, an interactive Folium map of the ground track with launch and landing markers, behind the new optional `maps` extra (included in `rocketpy[all]`). [#1132](https://github.com/RocketPy-Team/RocketPy/pull/1132) [#963](https://github.com/RocketPy-Team/RocketPy/issues/963) +- ENH: Cache downloaded atmosphere data under `~/.rocketpy_cache/atmosphere` (override with `ROCKETPY_CACHE`), so a repeated `set_atmospheric_model` call reuses the disk; pass `no_cache=True` to force a fresh download. [#1137](https://github.com/RocketPy-Team/RocketPy/pull/1137) [#654](https://github.com/RocketPy-Team/RocketPy/issues/654) +- ENH: Add `Flight.plots.center_of_pressure()`, which plots the center of pressure, the center of mass and the static margin against time, and include it in `Flight.plots.all()`. [#1130](https://github.com/RocketPy-Team/RocketPy/pull/1130) [#954](https://github.com/RocketPy-Team/RocketPy/issues/954) +- ENH: Accept `random_seed` in `MonteCarlo.simulate_convergence`, including across batches. [#1213](https://github.com/RocketPy-Team/RocketPy/pull/1213) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) - ENH: Reproducible Monte Carlo seeding, and an append that continues the same study [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1053](https://github.com/RocketPy-Team/RocketPy/issues/1053) [#1075](https://github.com/RocketPy-Team/RocketPy/issues/1075) -- ENH: 3-DOF single rail button flight phase (tip-off analysis), enabled with the opt-in `Flight(use_udot_rail2=True)`. Between the upper rail button leaving the rail and the lower one following it, the rocket pivots about the lower button under a solved constraint wrench instead of jumping straight to free 6-DOF flight. The window is reported as `between_rails_time`, `between_rails_velocity` and `tip_off_duration`, printed by `Flight.info()` and shaded in the attitude plots. Requires `simulation_mode="6 DOF"` and `equations_of_motion="standard"`. [#920](https://github.com/RocketPy-Team/RocketPy/pull/920) +- ENH: 3-DOF single rail button flight phase (tip-off analysis). Between the upper rail button leaving the rail and the lower one following it, the rocket pivots about the lower button under a solved constraint wrench instead of jumping straight to free 6-DOF flight. The phase always runs when both rail buttons start on the rail, with `simulation_mode="6 DOF"` and `equations_of_motion="standard"`; there is no flag to enable it. The window is reported as `tip_off_end_time`, `tip_off_end_velocity`, `tip_off_end_state` and `tip_off_duration`, and the lower button's force as `rail_button2_normal_force` and `rail_button2_shear_force`. The window is printed by `Flight.info()` and shaded in the attitude plots. Rail exits are found with a root finder, and the phase is validated against an independent rigid-body model. [#920](https://github.com/RocketPy-Team/RocketPy/pull/920) [#1217](https://github.com/RocketPy-Team/RocketPy/pull/1217) - 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) - 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) - ENH: Model unbonded solid-motor grain CM shift [#1138](https://github.com/RocketPy-Team/RocketPy/pull/1138) [#340](https://github.com/RocketPy-Team/RocketPy/issues/340) - DOC: Document angle-of-attack drag inputs [#1142](https://github.com/RocketPy-Team/RocketPy/pull/1142) - ENH: Create ensembles from user-defined profiles [#1141](https://github.com/RocketPy-Team/RocketPy/pull/1141) -- ENH: Add tube-fin aerodynamic surface [#1144](https://github.com/RocketPy-Team/RocketPy/pull/1144) -- ENH: StochasticFreeFormFins for Monte Carlo simulations [#1117](https://github.com/RocketPy-Team/RocketPy/pull/1117) -- ENH: `StochasticFreeFormFins`, so free-form fin sets can be used in Monte Carlo simulations. The outline is randomized as a block, since a shape is only meaningful as a complete set of points: every coordinate is perturbed by its own draw, the fin root is held on the body line, and a list of candidate outlines can have a different number of points in each. [#953](https://github.com/RocketPy-Team/RocketPy/issues/953) +- ENH: Add the `TubeFins` aerodynamic surface, based on the ring wing measurements of NACA TN 4117, with roll damping and no stall cap on the normal force. Attach it to a rocket with `Rocket.add_surfaces`. [#1144](https://github.com/RocketPy-Team/RocketPy/pull/1144) [#1218](https://github.com/RocketPy-Team/RocketPy/pull/1218) [#816](https://github.com/RocketPy-Team/RocketPy/issues/816) +- ENH: `StochasticFreeFormFins`, so free-form fin sets can be used in Monte Carlo simulations. The outline is randomized as a block, since a shape is only meaningful as a complete set of points: every coordinate is perturbed by its own draw, the fin root is held on the body line, and a list of candidate outlines can have a different number of points in each. [#1117](https://github.com/RocketPy-Team/RocketPy/pull/1117) [#953](https://github.com/RocketPy-Team/RocketPy/issues/953) - ENH: Support for Open Meteo API in the `Environment` class, adding the `open_meteo` and `open_meteo_ensemble` atmospheric models. Pressure-level forecasts, past forecasts (from 2021 onwards) and ensembles are read straight from a keyless JSON API, with no external files and no netCDF/OPeNDAP dependency. [#520](https://github.com/RocketPy-Team/RocketPy/issues/520) [#1119](https://github.com/RocketPy-Team/RocketPy/pull/1119) - ENH: Add simplified opening shock force estimation [#1092](https://github.com/RocketPy-Team/RocketPy/pull/1092) - ENH: Add Qodo PR-Agent workflow using Google Gemini [#1089](https://github.com/RocketPy-Team/RocketPy/pull/1089) - ENH: Support for Meteomatics API in the `Environment` class [#1079](https://github.com/RocketPy-Team/RocketPy/pull/1079) -- ENH: update master with develop [#1081](https://github.com/RocketPy-Team/RocketPy/pull/1081) ### Changed -- BUG: Negate `com_to_cdm_function` and `nozzle_to_cdm` where `u_dot_generalized` reads them. Both are defined pointing at the center of dry mass and the derivation measures from it, so the moment arm they formed had the wrong sign. Every result out of the generalized equations of motion changes, so a study built on the old numbers will not reproduce. On the measured 2024 Defiance flight the apogee error against 9308.32 m AGL goes from 0.6928 % to 0.6483 %. [#1186](https://github.com/RocketPy-Team/RocketPy/issues/1186) +- BUG: Negate `com_to_cdm_function` and `nozzle_to_cdm` where `u_dot_generalized` reads them. Both are defined pointing at the center of dry mass and the derivation measures from it, so the moment arm they formed had the wrong sign. Every result out of the generalized equations of motion changes, so a study built on the old numbers will not reproduce. On the measured 2024 Defiance flight the apogee error against 9308.32 m AGL goes from 0.6928 % to 0.6483 %. [#1196](https://github.com/RocketPy-Team/RocketPy/pull/1196) [#1186](https://github.com/RocketPy-Team/RocketPy/issues/1186) - ENH: Number new Monte Carlo runs from zero in both execution modes, as the parallel path already did; serial runs used `1..n`, so their `index` shifts by one. Every simulation is now reseeded from one study `random_seed` (a non-negative integer), so individual object seeds are ignored and fixed-seed results from v1.13 change. New input and output rows record that `seed`, and an append refuses logs whose seeds disagree; metadata is kept out of results, statistics and plots. Legacy checkpoints keep their rows when extended, filling index 0 like any other hole, with a warning that their original draws cannot be reproduced. [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) - ENH: Compute the rocket static margin lazily [#1135](https://github.com/RocketPy-Team/RocketPy/pull/1135) [#780](https://github.com/RocketPy-Team/RocketPy/issues/780) - DOC: Tighten the comments that came with the sampler seed groups [#1154](https://github.com/RocketPy-Team/RocketPy/pull/1154) @@ -63,10 +64,25 @@ Attention: The newest changes should be on top --> ### Fixed +- BUG: Stop a time parachute trigger that fires on the rail from crashing `Flight`. `Parachute` now rejects a `("time", t)` trigger with `t <= 0`, and `Flight` raises a `ValueError` naming the parachute, its deploy time and the rail exit time when a trigger fires before the rocket leaves the rail. Before, it crashed with "No valid roots found when solving for impact time" or silently dropped the parachute. [#1226](https://github.com/RocketPy-Team/RocketPy/pull/1226) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) +- BUG: Accept the assignment `Rocket.static_margin = ...` again, with a `DeprecationWarning`. It raised `AttributeError` once the static margin became lazy; the assigned value is kept until the next geometry, mass or surface change. [#1225](https://github.com/RocketPy-Team/RocketPy/pull/1225) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) +- BUG: Use the angular rates in the `solid_propulsion` equations of motion. `Flight.u_dot` zeroed them, so flights with `equations_of_motion="solid_propulsion"` had no aerodynamic damping and a frozen attitude. The propellant offset terms now sit on the rocket axis and the inertia rate is corrected. The default equations are not affected. [#1195](https://github.com/RocketPy-Team/RocketPy/pull/1195) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) +- BUG: Evaluate the gravity an `Accelerometer` applies with `consider_gravity=True` at the altitude. It was evaluated at the x velocity, so any height-dependent gravity model gave the wrong reading. [#1215](https://github.com/RocketPy-Team/RocketPy/pull/1215) [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) +- BUG: Fix the sign of `Flight.potential_energy`, which was negative and fell as the rocket climbed; `Flight.total_energy` inherited the error. [#1204](https://github.com/RocketPy-Team/RocketPy/pull/1204) [#1202](https://github.com/RocketPy-Team/RocketPy/issues/1202) - BUG: Keep checkpoint metadata out of Monte Carlo plots and statistics, recover missing simulation indices without repeating completed flights, and warn when appending v1.13 logs. Preserve explicit initial flight states, `terminate_on_apogee` (warning when an inherited `True` stops every sampled flight at apogee) and solid-motor grain bonding in stochastic models. [#1209](https://github.com/RocketPy-Team/RocketPy/issues/1209) - BUG: A `Flight` continued from another `Flight` object now records `t_initial`, so a rocket carrying sensors or controllers no longer raises `AttributeError` on that path. [#920](https://github.com/RocketPy-Team/RocketPy/pull/920) +- BUG: Re-raise `KeyboardInterrupt` after an interrupted `MonteCarlo.simulate` run instead of returning as if the study had finished, and keep the input and output files paired when the interrupt lands between the two writes. [#1177](https://github.com/RocketPy-Team/RocketPy/pull/1177) [#1151](https://github.com/RocketPy-Team/RocketPy/issues/1151) +- BUG: Correct the parallel axis term of the nozzle gyration tensor in `Rocket.evaluate_nozzle_gyration_tensor`, which was a quarter of what the exit plane integral gives. [#1188](https://github.com/RocketPy-Team/RocketPy/pull/1188) +- BUG: Accept the seed type a parallel Monte Carlo worker is handed. Workers received a `SeedSequence` that `_sampler_seed` rejected, so parallel runs hung. [#1181](https://github.com/RocketPy-Team/RocketPy/pull/1181) +- BUG: Reject `Generator` and `BitGenerator` objects as sensor seeds with a `TypeError` at construction, instead of failing later when the sensor is serialized. [#1174](https://github.com/RocketPy-Team/RocketPy/pull/1174) +- BUG: Give each `StochasticRocket` component its own random stream, so a main and a drogue parachute with the same specification no longer draw the same values, and bring air brakes into the reseed. [#1170](https://github.com/RocketPy-Team/RocketPy/pull/1170) +- BUG: Keep the nominal values of stochastic models stable across reseeds. Each reseed read the nominal back from an object that the previous simulation had written its sampled value to, so values drifted from one simulation to the next. [#1169](https://github.com/RocketPy-Team/RocketPy/pull/1169) - BUG: Correct the gravity sign an `Accelerometer` applies when `consider_gravity=True`. The gravitational field was added to the inertial acceleration instead of subtracted from it, so the sensor reported the negative of the proper acceleration along the vertical: one at rest read -g rather than +g. Recorded accelerometer data taken with `consider_gravity=True` changes sign in that term. [#1175](https://github.com/RocketPy-Team/RocketPy/pull/1175) - BUG: Report a Monte Carlo worker that fails instead of hanging or passing for a finished run [#1182](https://github.com/RocketPy-Team/RocketPy/pull/1182) +- BUG: Set the default `operating_temperature` of the sensors to 298.15 K, as their docstrings state, instead of 25. [#1118](https://github.com/RocketPy-Team/RocketPy/pull/1118) +- BUG: Make the input validation in `stochastic/` survive `python -O`: the `assert` statements are now explicit checks that still raise `AssertionError`. [#1111](https://github.com/RocketPy-Team/RocketPy/pull/1111) +- BUG: Fly the parachute that `StochasticParachute` sampled. `StochasticRocket.create_object` rebuilt it without `radius`, `height`, `porosity` and `drag_coefficient`, so they fell back to defaults. [#1098](https://github.com/RocketPy-Team/RocketPy/pull/1098) [#1094](https://github.com/RocketPy-Team/RocketPy/issues/1094) +- DOC: Make the `CustomSampler` examples respond to their seed; `reset_seed` built a generator and discarded it. [#1097](https://github.com/RocketPy-Team/RocketPy/pull/1097) [#1096](https://github.com/RocketPy-Team/RocketPy/issues/1096) - BUG: Sample `StochasticFlight` inputs once per simulation [#1126](https://github.com/RocketPy-Team/RocketPy/pull/1126) [#1090](https://github.com/RocketPy-Team/RocketPy/issues/1090) - BUG: Fix spurious `ValueError` from floating-point roundoff at exact tank depletion [#1166](https://github.com/RocketPy-Team/RocketPy/pull/1166) - BUG: Draw each declared eccentricity once per simulation [#1168](https://github.com/RocketPy-Team/RocketPy/pull/1168) @@ -79,11 +95,10 @@ Attention: The newest changes should be on top --> - BUG: Apply the wind factors to the ensemble member that was selected [#1160](https://github.com/RocketPy-Team/RocketPy/pull/1160) - BUG: Avoid scalar statistics for structured Monte Carlo results [#1146](https://github.com/RocketPy-Team/RocketPy/pull/1146) [#1145](https://github.com/RocketPy-Team/RocketPy/issues/1145) - BUG: Evaluate parachute triggers once per time node [#1121](https://github.com/RocketPy-Team/RocketPy/pull/1121) [#1086](https://github.com/RocketPy-Team/RocketPy/issues/1086) -- DOC: Fix the RST indentation in the `dict_generator` notes [`772480d`](https://github.com/RocketPy-Team/RocketPy/commit/772480d6bc69e5b5c2f517305e974c65ca781e57) - BUG: Stop `dict_generator` from sampling `initial_solution` [#1122](https://github.com/RocketPy-Team/RocketPy/pull/1122) [#1109](https://github.com/RocketPy-Team/RocketPy/issues/1109) - BUG: Report missing impact roots explicitly [#1148](https://github.com/RocketPy-Team/RocketPy/pull/1148) [#1147](https://github.com/RocketPy-Team/RocketPy/issues/1147) - DOC: Correct the `Flight` aerodynamic moment units [#1149](https://github.com/RocketPy-Team/RocketPy/pull/1149) -- BUG: Seed the parachute pressure noise with a per-instance RNG [#1134](https://github.com/RocketPy-Team/RocketPy/pull/1134) [#1091](https://github.com/RocketPy-Team/RocketPy/issues/1091) +- BUG: Draw the parachute pressure noise from a per-instance random generator instead of the process-global one, so a Monte Carlo study can reproduce it. The seed is set by `StochasticParachute`, not through the `Parachute` constructor. [#1134](https://github.com/RocketPy-Team/RocketPy/pull/1134) [#1227](https://github.com/RocketPy-Team/RocketPy/pull/1227) [#1091](https://github.com/RocketPy-Team/RocketPy/issues/1091) - BUG: Restore the UTC fallback without timezonefinder [#1143](https://github.com/RocketPy-Team/RocketPy/pull/1143) - BUG: Pick between the candidate values of a list input with the stochastic model's own seeded generator. `random.choice` was used, which draws from the interpreter-wide stream that `_set_stochastic` does not reseed, so a fixed seed did not reproduce the values chosen from a list, and Monte Carlo workers forked from one process walked a single shared stream instead of sampling independently. Fixed-seed baselines that vary a list input change. [#953](https://github.com/RocketPy-Team/RocketPy/issues/953) - BUG: Report the atmospheric model time period and ensemble member count for lower-case model types. `set_atmospheric_model` documents `type` as case-insensitive, but `Environment.info()` and `all_info()` compared against capitalised literals, so `type="ensemble"` printed no time period and no member count, and skipped the ensemble comparison plot. [#520](https://github.com/RocketPy-Team/RocketPy/issues/520) From 90e46925172e7b071370e6b9fe14605a54b2411b Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Thu, 19 Nov 2026 21:29:02 -0300 Subject: [PATCH 2/2] DOC: add a Breaking changes section to the v1.14.0 changelog List what changes for a v1.13.0 user: Monte Carlo seeding and numbering, the deprecated static_margin assignment, the parachute trigger ValueError on the rail, the shifted flight results, and the sensor default temperature. Related to #1209 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XDW575d9C9zpS7Z1v2KXVq --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58f2cf10a..5ad4429f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/). +### Breaking changes + +- Monte Carlo runs with a fixed seed give different results from v1.13. Every simulation is now reseeded from one study `random_seed`, and each `StochasticRocket` component draws from its own random stream, so fixed-seed baselines have to be regenerated. [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1170](https://github.com/RocketPy-Team/RocketPy/pull/1170) [#1213](https://github.com/RocketPy-Team/RocketPy/pull/1213) +- Seeds set on individual stochastic models are ignored by `MonteCarlo`; pass a non-negative integer `random_seed` to reproduce a study. Without one, a new study generates and prints its own. [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1213](https://github.com/RocketPy-Team/RocketPy/pull/1213) +- Serial Monte Carlo runs are numbered `0..n-1` instead of `1..n`, matching parallel runs. Appending to a v1.13 log keeps its rows, adds index 0 to a one-based serial log, and warns that the original draws cannot be reproduced. [#1187](https://github.com/RocketPy-Team/RocketPy/pull/1187) [#1213](https://github.com/RocketPy-Team/RocketPy/pull/1213) +- `CustomSampler` reset callbacks receive a 128-bit integer seed, retried with its low 32 bits when they raise `ValueError`, so fixed-seed `CustomSampler` baselines change. [#1102](https://github.com/RocketPy-Team/RocketPy/pull/1102) [#1213](https://github.com/RocketPy-Team/RocketPy/pull/1213) +- A `StochasticRocket` now flies the parachute it sampled, with its `radius`, `height`, `porosity` and `drag_coefficient`, so Monte Carlo descent dynamics change for parachutes that set them. [#1098](https://github.com/RocketPy-Team/RocketPy/pull/1098) +- Assigning `Rocket.static_margin` is deprecated and emits a `DeprecationWarning`. The static margin is computed lazily, so an assigned value is kept only until the next geometry, mass or surface change. [#1225](https://github.com/RocketPy-Team/RocketPy/pull/1225) +- A parachute trigger that fires before the rocket leaves the rail now raises `ValueError`. Before, it crashed `Flight` or silently dropped the parachute. [#1226](https://github.com/RocketPy-Team/RocketPy/pull/1226) +- Flight results shift slightly. The tip-off phase now always runs when both rail buttons start on the rail, and the equations of motion were fixed: the position-vector convention and the nozzle gyration tensor in the default equations, and the angular rates in `solid_propulsion`. [#1217](https://github.com/RocketPy-Team/RocketPy/pull/1217) [#1195](https://github.com/RocketPy-Team/RocketPy/pull/1195) [#1196](https://github.com/RocketPy-Team/RocketPy/pull/1196) [#1188](https://github.com/RocketPy-Team/RocketPy/pull/1188) +- `Flight.potential_energy` and `Flight.total_energy` change sign, so stored values from earlier versions differ. [#1204](https://github.com/RocketPy-Team/RocketPy/pull/1204) +- `Accelerometer` readings taken with `consider_gravity=True` change sign in the gravity term. [#1175](https://github.com/RocketPy-Team/RocketPy/pull/1175) +- The sensors' default `operating_temperature` is now 298.15 K instead of 25. [#1118](https://github.com/RocketPy-Team/RocketPy/pull/1118) + ### Added - ENH: Add `Flight.plots.trajectory_on_map()`, an interactive Folium map of the ground track with launch and landing markers, behind the new optional `maps` extra (included in `rocketpy[all]`). [#1132](https://github.com/RocketPy-Team/RocketPy/pull/1132) [#963](https://github.com/RocketPy-Team/RocketPy/issues/963)