Commit 973fd8b
fix(environment): default missing wind to 0 for custom_atmosphere
RocketPy's set_atmospheric_model guards pressure/temperature against None but
not wind, so a custom_atmosphere environment with wind_u/wind_v left unset
raised "'NoneType' object has no attribute 'shape'" and hard-failed the
simulation. Default a None wind component to 0.0 (only None is replaced — real
0.0 values and wind-profile lists pass through untouched).
Surfaced from the Jarvis beta audit: the web client seeds wind as null and only
writes on user edit, so the default Custom-atmosphere path crashed. Jarvis now
coerces null->0 on egress too; this is the belt-and-suspenders backend guard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cf325e4 commit 973fd8b
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | | - | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments