Skip to content

Commit b1ad925

Browse files
committed
chore: formatting
1 parent 3c4d00e commit b1ad925

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/services/motor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

src/services/rocket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/views/rocket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from src.models.rocket import RocketModel
44
from src.views.interface import ApiBaseView
55
from 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.
89
from src.views.drawing import (

0 commit comments

Comments
 (0)