From 8529e8d176a638a49082a9fa5e02208a2594e5b7 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 20 Jun 2019 13:03:13 -0700 Subject: remove useless cyclomatic complexifier --- creator.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/creator.py b/creator.py index 49037f4..85a5805 100644 --- a/creator.py +++ b/creator.py @@ -167,14 +167,12 @@ class Airfoil(Coordinates): """ Returns thickness from 1 'x' along the airfoil chord. """ - y_t = float() - if 0 <= x <= self.chord: - y_t = 5 * t * self.chord * ( - +0.2969 * sqrt(x / self.chord) - - 0.1260 * (x / self.chord) - - 0.3516 * (x / self.chord)**2 - + 0.2843 * (x / self.chord)**3 - - 0.1015 * (x / self.chord)**4) + y_t = 5 * t * self.chord * ( + +0.2969 * sqrt(x / self.chord) + - 0.1260 * (x / self.chord) + - 0.3516 * (x / self.chord)**2 + + 0.2843 * (x / self.chord)**3 + - 0.1015 * (x / self.chord)**4) return y_t def get_theta(x): -- cgit v1.2.3