Repository navigation
RocketPy v1.14.0 is out. This release adds the tip-off phase at the end of the rail, tube fins, new weather sources, forecast caching and reproducible Monte Carlo studies, and fixes many bugs in the equations of motion, the sensors and the stochastic models. Some results change, so read the Breaking changes below before you upgrade.
pip install rocketpy==1.14.0
Highlights
Flight
- Tip-off phase. Between the upper rail button leaving the rail and the lower one following it, the rocket now pivots about the lower button instead of jumping straight to free flight. The phase always runs when both buttons start on the rail. Its results are
tip_off_end_time,tip_off_end_state,tip_off_durationand the lower button's forces. #920 #1217 - Fixes to the equations of motion. The position vectors in the generalized equations, the nozzle gyration tensor, and the angular rates in
solid_propulsionare corrected. #1196 #1188 #1195 - Parachutes that open at a set time, with
trigger=("time", t). #1133 - New plots:
Flight.plots.trajectory_on_map(), an interactive map of the ground track (with the newmapsextra), andFlight.plots.center_of_pressure(). #1132 #1130
Rocket and motors
TubeFins, a new aerodynamic surface based on NACA TN 4117. #1144 #1218- Unbonded solid-motor grains: the shift of the grains' center of mass is now modeled. #1138
- The static margin is computed only when it is needed, and a drag CSV that is not a regular grid now gives a warning. #1135 #1239
calculate_simplified_opening_shock_force, a simplified estimate of the parachute opening shock force. #1092
Environment
- New sources: Open-Meteo forecasts and ensembles (
type="open_meteo"and"open_meteo_ensemble"), which need no files and no netCDF, and Meteomatics. #1119 #1079 - Forecasts are reused. Within a session, a forecast that was already downloaded is downloaded again only when the server has a newer run.
cache=Truealso keeps forecasts on disk between sessions. #1137 #1219 Environment.create_ensemblebuilds an ensemble from your own profiles. #1141 #1231- NOAA retired the NAM forecast.
file="NAM"now raises a clear error that points to RAP, HRRR or GFS. #1246
Monte Carlo
- Reproducible studies. One
random_seedreproduces the whole study, in serial or in parallel, andappend=Truecontinues the same study.simulate_convergenceacceptsrandom_seedtoo. #1187 #1213 StochasticFreeFormFins, so free-form fins can be varied in a Monte Carlo study. #1117- Many fixes to the stochastic models and the Monte Carlo runs: parallel runs that hung, values that drifted between simulations, parachutes flown without the values that were drawn for them, and results files that lost their pairing after an interrupt.
Breaking changes
- Monte Carlo results with a fixed seed differ from v1.13. Regenerate fixed-seed baselines:
- Flight results shift slightly, because of the tip-off phase and the fixes to the equations of motion. #1217 #1196 #1195 #1188
Flight.potential_energyandtotal_energychange sign, and are now computed fromEnvironment.gravity. #1204 #1224Accelerometerreadings taken withconsider_gravity=Truechange sign in the gravity term. #1175- The sensors' default
operating_temperatureis 298.15 K instead of 25. #1118 - A parachute that would open while the rocket is still on the rail now raises a
ValueError. #1226 - Assigning
Rocket.static_marginis deprecated. #1225
See the changelog for the full list of changes.
What's Changed
- update master with develop by @Gui-FernandesBR in #1081
- CI: make changelog automation LLM-based (Gemini) and race-safe by @Gui-FernandesBR in #1082
- ENH: Resolve pressure_ISA discretization bounds TODO by @Gui-FernandesBR in #1056
- ENH: Add native Meteomatics API support to the Environment class by @Gui-FernandesBR in #1079
- DOC: make the CustomSampler examples answer to their seed by @thc1006 in #1097
- CI: force software rendering to fix flaky VTK off-screen bus error (#1078) by @wuisabel-gif in #1084
- BUG: rocket with a late-starting thrust curve never leaves the rail (#411) by @wuisabel-gif in #1085
- BUG: fly the parachute the simulation sampled by @thc1006 in #1098
- MNT: do not let one Python version cancel the other in the slow matrix by @thc1006 in #1100
- ENH: Add Qodo PR-Agent workflow using Google Gemini by @Gui-FernandesBR in #1089
- CI: build the docs for pull requests into develop as well by @thc1006 in #1104
- MNT: declare dependency floors the package can actually run on by @thc1006 in #1108
- BUG: accept the callable parachute triggers the docstring promises by @thc1006 in #1103
- ENH: Add simplified opening shock force estimation by @ArthurJWH in #1092
- BUG: validation in stochastic/ that survives python -O by @thc1006 in #1111
- ENH: Support for Open-Meteo API in the
Environmentclass by @Gui-FernandesBR in #1119 - MNT: the docker/ files still use the paths they had before the 2024 move by @sujeito-operator in #1139
- Fix operating_temperature default init values across sensor classes by @vapsik in #1118
- CI: make the Gemini PR reviewer actually review by @Gui-FernandesBR in #1140
- ENH: StochasticFreeFormFins for Monte Carlo simulations by @Gui-FernandesBR in #1117
- BUG: Restore UTC fallback without timezonefinder by @ting-hong-shieh in #1143
- ENH: Add tube-fin aerodynamic surface by @ting-hong-shieh in #1144
- CI: keep per-matrix coverage artifacts and fail Codecov errors (#1088) by @thatrandomasiandev in #1123
- BUG: seed parachute pressure noise with per-instance RNG (#1091) by @thatrandomasiandev in #1134
- CI: run the changelog job for pull requests from forks by @thc1006 in #1112
- DOC: correct Flight aerodynamic moment units by @ting-hong-shieh in #1149
- DOC: tighten the comments that came with the sampler seed groups by @thc1006 in #1154
- TST: use UTC for the HRRR forecast date by @ting-hong-shieh in #1153
- BUG: report missing impact roots explicitly by @ting-hong-shieh in #1148
- TST: cover controller behavior and reporting by @ting-hong-shieh in #1152
- TST: cover Function unit conversions by @ting-hong-shieh in #1157
- TST: cover geospatial extent conversions by @ting-hong-shieh in #1158
- MNT: let pylint use every core it is given by @thc1006 in #1163
- BUG: stop dict_generator from sampling initial_solution (#1109) by @thatrandomasiandev in #1122
- TST: cover attitude conversion helpers by @ting-hong-shieh in #1159
- CI: measure coverage on develop, not only on pull requests by @thc1006 in #1162
- BUG: evaluate parachute triggers once per time node (#1086) by @thatrandomasiandev in #1121
- ENH: Create ensembles from user-defined profiles by @ting-hong-shieh in #1141
- BUG: avoid scalar statistics for structured Monte Carlo results by @ting-hong-shieh in #1146
- BUG: apply wind factors to the ensemble member that was selected by @thc1006 in #1160
- BUG: build Monte Carlo flights with the configuration they were given by @thc1006 in #1164
- DOC: Document angle-of-attack drag inputs by @ting-hong-shieh in #1142
- TST: add Defiance example flight acceptance test by @ting-hong-shieh in #1156
- BUG: serialize numpy SeedSequence for sensor seeds (#1087) by @thatrandomasiandev in #1124
- TST: cover Monte Carlo confidence ellipse helpers by @ting-hong-shieh in #1165
- BUG: draw the eccentricities again, whichever way they were added by @thc1006 in #1167
- ENH: compute rocket static margin lazily (#780) by @thatrandomasiandev in #1135
- BUG: write MonteCarlo input and output rows atomically (#1110) by @thatrandomasiandev in #1125
- ENH: add Flight post-step callback across all phases (#758) by @thatrandomasiandev in #1128
- ENH: model unbonded solid-motor grain CM shift (#340) by @thatrandomasiandev in #1138
- BUG: refuse to run a Monte Carlo over a results file it cannot write by @thc1006 in #1161
- ENH: list NOAA atmosphere datasets and fetch latest (#660) by @thatrandomasiandev in #1136
- DOC: add SIL parachute ejection integration example (#524) by @thatrandomasiandev in #1131
- fix: accept numpy integer types as Parachute trigger by @abhi-0203 in #1116
- BUG: draw each declared eccentricity once per simulation by @thc1006 in #1168
- ENH: support fixed-time parachute deployment triggers (#437) by @thatrandomasiandev in #1133
- Fix spurious ValueError from floating-point roundoff at exact tank depletion by @arocketcat in #1166
- BUG: sample StochasticFlight inputs once per simulation (#1090) by @thatrandomasiandev in #1126
- DOC: backfill the Unreleased changelog entries the automation missed by @ting-hong-shieh in #1180
- TST: run the EnvironmentAnalysis tests in the default suite by @ting-hong-shieh in #1176
- MNT: install contextily with the other optional requirements by @ting-hong-shieh in #1179
- TST: cover the rocket and Monte Carlo plot branches by @ting-hong-shieh in #1178
- BUG: correct the nozzle gyration tensor parallel axis term by @thc1006 in #1188
- ENH: plot flight center-of-pressure evolution (#954) by @thatrandomasiandev in #1130
- BUG: accept the seed type a Monte Carlo worker is handed by @thc1006 in #1181
- Update official team logos (black and white) by @shmuelnasc in #1183
- Fixed sensor.accelerometer gravity sign for
consider_gravity = Truecase by @vapsik in #1175 - BUG: reject live RNG objects as Sensor seeds by @myungjunlee in #1174
- BUG: give each StochasticRocket component its own random stream by @thc1006 in #1170
- BUG: keep stochastic nominal values stable across reseeds by @thc1006 in #1169
- MNT: store ref_factor on rocket aero surface components (#561) by @thatrandomasiandev in #1129
- BUG: make a failing Monte Carlo worker say so by @thc1006 in #1182
- BUG: re-raise KeyboardInterrupt after an interrupted Monte Carlo run by @ting-hong-shieh in #1177
- ENH: cache downloaded atmosphere netCDF datasets (#654) by @thatrandomasiandev in #1137
- ENH: add Folium interactive flight trajectory map (#963) by @thatrandomasiandev in #1132
- ENH: Implement 3-DOF Single Rail Button Flight Phase (Tip-off Analysis) by @Rafit345 in #920
- ENH: continue a Monte Carlo study from the root its rows were drawn with by @thc1006 in #1187
- MNT: fix develop CI with pandas 3 and pylint 4 by @Gui-FernandesBR in #1211
- REV: revert #1136, #1129 and #1128 before v1.14.0 by @Gui-FernandesBR in #1210
- DOC: avoid unavailable external APIs during documentation builds by @Gui-FernandesBR in #1212
- BUG: correct the position-vector convention in u_dot_generalized by @thc1006 in #1196
- TST: allow Open-Elevation model drift in test_set_elevation_open_elevation by @cristianchiriac in #1203
- BUG: fix the sign of Flight.potential_energy by @Mohit-Ak in #1204
- BUG: evaluate the accelerometer gravity at the altitude by @Gui-FernandesBR in #1215
- BUG: use the angular rates in the solid propulsion equations of motion by @MateusStano in #1195
- BUG: fix the tip-off phase and run it without a flag by @MateusStano in #1217
- BUG: fix Monte Carlo release blockers by @Gui-FernandesBR in #1213
- ENH: base the tube fins on ring wing measurements and drop add_tube_fins by @MateusStano in #1218
- TST: finish the v1.14.0 test checklist item by @Gui-FernandesBR in #1220
- BUG: accept static_margin assignment with a DeprecationWarning by @Gui-FernandesBR in #1225
- BUG: stop a time parachute trigger on the rail from crashing Flight by @Gui-FernandesBR in #1226
- BUG: accept roundoff-sized overshoot in Function.compose by @Gui-FernandesBR in #1222
- DOC: document grains_bonded and simplify its docstrings by @Gui-FernandesBR in #1223
- TST: keep the Monte Carlo fixtures out of the working directory by @thc1006 in #1197
- MNT: make the Open-Meteo hourly variables builder private by @Gui-FernandesBR in #1237
- BUG: save and load point mass rockets and motors by @MateusStano in #1234
- MNT: raise typed stochastic exceptions instead of bare AssertionError by @Gui-FernandesBR in #1221
- BUG: compute Flight.potential_energy from Environment.gravity by @CharlesXmf in #1224
- ENH: create custom ensembles without a file and without a date by @MateusStano in #1231
- DOC: add notes on the inputs of the drag coefficient models by @MateusStano in #1232
- ENH: rework the forecast cache: reuse in memory and an opt-in disk cache by @MateusStano in #1219
- MNT: make the parachute noise seed private by @Gui-FernandesBR in #1227
- ENH: warn when a drag CSV does not form a regular grid by @CharlesXmf in #1239
- BUG: keep Open-Meteo ensemble members on the same pressure levels by @MateusStano in #1242
- DOC: backfill the v1.14.0 changelog and add breaking changes by @Gui-FernandesBR in #1228
- MNT: v1.14.0 final review fixes by @MateusStano in #1243
- REL: v1.14.0 by @MateusStano in #1245
- BUG: raise a clear error for the discontinued NAM forecast shortcut by @Gui-FernandesBR in #1246
- Updates master with develop before releasing v1.14.0 by @Gui-FernandesBR in #1194
New Contributors
- @wuisabel-gif made their first contribution in #1084
- @sujeito-operator made their first contribution in #1139
- @vapsik made their first contribution in #1118
- @ting-hong-shieh made their first contribution in #1143
- @thatrandomasiandev made their first contribution in #1123
- @abhi-0203 made their first contribution in #1116
- @arocketcat made their first contribution in #1166
- @shmuelnasc made their first contribution in #1183
- @myungjunlee made their first contribution in #1174
- @Rafit345 made their first contribution in #920
- @cristianchiriac made their first contribution in #1203
- @Mohit-Ak made their first contribution in #1204
- @CharlesXmf made their first contribution in #1224
Full Changelog: v1.13.0...v1.14.0