ENH: custom warning no motor or aerosurface by Bizo883 · Pull Request #871 · RocketPy-Team/RocketPy

Gui-FernandesBR

Added a placeholder in the [Unreleased] section for the upcoming feature
to add custom warnings when a rocket is missing motors and/or aero-surface. See RocketPy-Team#285.
This enhancement adds a warning when a Rocket object has no motors,
parachutes, or AeroSurface components. It notifies the user so that
they can add missing components before running simulations. See RocketPy-Team#285

@Bizo883 @C8H10O2

@Bizo883 @C8H10O2

Only warn if motor or aerodynamic surfaces are missing. Never raise a warning for no parachute. See RocketPy-Team#285

@Bizo883

- Removed redundant len() check for aerodynamic_surfaces.
- Added 'Returns: None' section to NumPy-style docstring.
- Removed redundant '[WARNING]' prefix in warnings messages.

@Bizo883

…r: exceptions must be derived from Warning, not <class 'NoneType'>

Gui-FernandesBR

@Bizo883

@Bizo883

Gui-FernandesBR

@Marchma0

Bizo883

Gui-FernandesBR

@Gui-FernandesBR Gui-FernandesBR changed the title Enh/custom warning no motor parachute aerosurface ENH: custom warning no motor or aerosurface

Nov 27, 2025