*ARCHIVED* development moved to aircraft-studio.
remove useless cyclomatic complexifier
creator.py
@@ -167,14 +167,12 @@
167
167
"""
168
168
Returns thickness from 1 'x' along the airfoil chord.
169
169
"""
170
Removed:
y_t = float()
171
Removed:
if 0 <= x <= self.chord:
172
Removed:
y_t = 5 * t * self.chord * (
173
Removed:
+0.2969 * sqrt(x / self.chord)
174
Removed:
- 0.1260 * (x / self.chord)
175
Removed:
- 0.3516 * (x / self.chord)**2
176
Removed:
+ 0.2843 * (x / self.chord)**3
177
Removed:
- 0.1015 * (x / self.chord)**4)
170
Added:
y_t = 5 * t * self.chord * (
171
Added:
+0.2969 * sqrt(x / self.chord)
172
Added:
- 0.1260 * (x / self.chord)
173
Added:
- 0.3516 * (x / self.chord)**2
174
Added:
+ 0.2843 * (x / self.chord)**3
175
Added:
- 0.1015 * (x / self.chord)**4)
178
176
return y_t
179
177
180
178
def get_theta(x):