File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,7 +279,9 @@ def get_drawing_geometry(
279279 # Fall back to the nozzle radius when the motor has no drawable
280280 # patches (e.g. EmptyMotor) so the bounds aren't a zero-height
281281 # line. Every real rocketpy motor class exposes nozzle_radius.
282- fallback_radius = float (getattr (self ._motor , "nozzle_radius" , 0.0 ) or 0.0 )
282+ fallback_radius = float (
283+ getattr (self ._motor , "nozzle_radius" , 0.0 ) or 0.0
284+ )
283285 return MotorDrawingGeometryView (
284286 motor = motor_geometry ,
285287 coordinate_system_orientation = str (
Original file line number Diff line number Diff line change @@ -596,7 +596,6 @@ def check_parachute_trigger(trigger) -> bool:
596596 return False
597597
598598
599-
600599# Drawing helpers (_polygon_xy, _rebuild_polygon, _build_generic_chamber_patch)
601600# moved to src/services/motor.py so the motor-only drawing endpoint and the
602601# rocket drawing endpoint share a single implementation. This module now
Original file line number Diff line number Diff line change 33from src .models .rocket import RocketModel
44from src .views .interface import ApiBaseView
55from src .views .motor import MotorView , MotorSimulation
6+
67# Re-export drawing types from src.views.drawing so callers that previously
78# imported them from src.views.rocket (the original home) keep working.
89from src .views .drawing import (
You can’t perform that action at this time.
0 commit comments