Skip to content

Commit a5249e6

Browse files
committed
MNT: ruff
1 parent 76b5830 commit a5249e6

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

rocketpy/rocket/aero_surface/fins/trapezoidal_fin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TrapezoidalFin(_TrapezoidalMixin, Fin):
2525
Attributes
2626
----------
2727
TrapezoidalFin.angular_position : float
28-
Angular position of the fin set with respect to the rocket centerline,
28+
Angular position of the fin set with respect to the rocket centerline,
2929
in degrees.
3030
TrapezoidalFin.rocket_radius : float
3131
The reference rocket radius used for lift coefficient normalization, in

rocketpy/rocket/aero_surface/generic_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,4 +444,4 @@ def wrapper(alpha, beta, mach, reynolds, pitch_rate, yaw_rate, roll_rate):
444444
interpolation="linear",
445445
extrapolation="natural",
446446
)
447-
return func
447+
return func

rocketpy/rocket/aero_surface/linear_generic_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,4 +407,4 @@ def _compute_from_coefficients(
407407
alpha, beta, mach, reynolds, pitch_rate, yaw_rate, roll_rate
408408
)
409409

410-
return lift, side, drag, pitch, yaw, roll
410+
return lift, side, drag, pitch, yaw, roll

rocketpy/rocket/aero_surface/rail_buttons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RailButtons(AeroSurface):
1616
RailButtons.angular_position : int, float
1717
Angular position of the rail buttons in degrees measured
1818
as the rotation around the symmetry axis of the rocket
19-
relative to one of the other principal axis.
19+
relative to one of the other principal axis.
2020
See :ref:`Angular Position Inputs <angular_position>`
2121
RailButtons.angular_position_rad : float
2222
Angular position of the rail buttons in radians.

rocketpy/rocket/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from copy import deepcopy
21
from collections import namedtuple
2+
from copy import deepcopy
33

44

55
class Components:

rocketpy/rocket/rocket.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@
99
from rocketpy.motors.empty_motor import EmptyMotor
1010
from rocketpy.plots.rocket_plots import _RocketPlots
1111
from rocketpy.prints.rocket_prints import _RocketPrints
12-
from rocketpy.rocket.aero_surface import (AirBrakes, EllipticalFins, Fins,
13-
NoseCone, RailButtons, Tail,
14-
TrapezoidalFins)
12+
from rocketpy.rocket.aero_surface import (
13+
AirBrakes,
14+
EllipticalFins,
15+
Fins,
16+
NoseCone,
17+
RailButtons,
18+
Tail,
19+
TrapezoidalFins,
20+
)
1521
from rocketpy.rocket.aero_surface.fins.elliptical_fin import EllipticalFin
1622
from rocketpy.rocket.aero_surface.fins.free_form_fin import FreeFormFin
1723
from rocketpy.rocket.aero_surface.fins.free_form_fins import FreeFormFins
@@ -1029,12 +1035,12 @@ def add_surfaces(self, surfaces, positions):
10291035
AeroSurface if more than one surface is to be added.
10301036
positions : int, float, tuple, list, Vector
10311037
Position(s) of the aerodynamic surface's reference point. Can be:
1032-
1038+
10331039
- a single number (int or float) giving the z-coordinate along
10341040
the rocket axis.
10351041
- a sequence of three numbers (x, y, z) representing the full
10361042
position in the user-defined coordinate system.
1037-
1043+
10381044
If passing multiple surfaces, provide a list of positions matching
10391045
each surface in order.
10401046
For NoseCone type, position is the tip coordinate along the axis.
@@ -1646,9 +1652,9 @@ def add_air_brakes(
16461652
7. `sensors` (list): A list of sensors that are attached to the
16471653
rocket. The most recent measurements of the sensors are provided
16481654
with the ``sensor.measurement`` attribute. The sensors are
1649-
listed in the same order as they are added to the rocket
1655+
listed in the same order as they are added to the rocket
16501656
``interactive_objects``
1651-
1657+
16521658
This function will be called during the simulation at the specified
16531659
sampling rate. The function should evaluate and change the observed
16541660
objects as needed. The function should return None.

0 commit comments

Comments
 (0)