Skip to content

Commit

Permalink
Fix darglint.
Browse files Browse the repository at this point in the history
We go by Google standards now, boi!
  • Loading branch information
Czarified committed May 17, 2024
1 parent 9ad93f6 commit 792d150
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/hyperstruct/fuselage.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def field_thickness_postbuckled(self, alpha: float = 45) -> float:
diagonal tension angle is unknown because intermediate frame and
stringer sizing is not known. An initial estimate of 45 degrees is used.
Arguments:
alpha = Diagonal tension angle (assumed 45 degrees)
Args:
alpha: Diagonal tension angle (assumed 45 degrees)
Returns:
t_c = field thickness
A float of field thickness.
"""
F_scr = (
self.k_s
Expand Down Expand Up @@ -197,11 +197,11 @@ def thickness_pressure(self, F_allow: Any = None) -> Tuple[float, float]:
from zero to peak pressure 20,000 times during the vehicle's useful
life, with a stress concentration factor of 4.0.
Arguments:
F_allow = Allowable stress (25% yield, if not provided)
Args:
F_allow: Allowable stress (25% yield, if not provided)
Returns:
(t_l, t_c) = Land thickness, Field thickness
A tuple of (Land thickness, Field thickness).
"""
b = min(self.D, self.L)
if not F_allow:
Expand Down Expand Up @@ -262,12 +262,12 @@ def panel_flutter(self, mach: float, altitude: float) -> float:
over for all Mach and altitudes corresponding to the flight
envelope conditions of the aircraft.
Arguments:
mach = Mach Number
altitude = Altitude (in thousands of feet)
Args:
mach: Mach Number
altitude: Altitude (in thousands of feet)
Returns:
Field Thickness
A float of Field Thickness.
"""
# Dynamic pressures based on standard day atmosphere.
# Dynamic Pressure, q, in [psf]
Expand Down Expand Up @@ -336,7 +336,8 @@ def acoustic_fatigue(self) -> Tuple[float, float]:
decibel level is then increased by 30, which represents jet noise instead
of a purely random spectrum.
Returns: (t_l, t_c)
Returns:
A tuple of Land thickness, Field thickness (t_l, t_c).
"""
# Random distribution acoustic level, that provides a material fatigue
# life of 10^9 cycles.
Expand Down Expand Up @@ -430,13 +431,13 @@ def general_stability(self, L: float, D: float, M: float) -> float:
The thickness that provides frame stiffness sufficient to prevent
general instability failure is solved via the Shanley equation.
Arguments:
L = Frame Spacing
D = Fuselage Diameter
M = Bending moment at the cut
Args:
L: Frame Spacing
D: Fuselage Diameter
M: Bending moment at the cut
Returns:
t_r = Flange thickness
A float of Flange thickness.
"""
c_f = 1 / 16000
numerator = c_f * M * D**2
Expand Down Expand Up @@ -468,11 +469,11 @@ def acoustic_fatigue(self, b: float) -> float:
decibel level is then increased by 30, which represents jet noise instead
of a purely random spectrum.
Arguments:
b = Support spacing (frame spacing)
Args:
b: Support spacing (frame spacing)
Returns:
t_r = Flange thickness
A float of Flange thickness.
"""
# Random distribution acoustic level, that provides a material fatigue
# life of 10^9 cycles.
Expand Down

0 comments on commit 792d150

Please sign in to comment.