Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Nov 16, 2017
1 parent 691ff0e commit 9e017e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/tail/tail_aero.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def setup(self, static, state):
orient="records")[0]

constraints = [
Re == (V*rho*S/b/mu),
Re == V*rho*S/b/mu,
# XfoilFit(fd, Cd, [Re, static["\\tau"]],
# err_margin="RMS", airfoil="naca 0008")
XfoilFit(fd, Cd, [Re, static.planform.tau], err_margin="RMS")
Expand Down
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/tail/tail_boom.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setup(self, static, state):
V = self.V = state.V
mu = self.mu = state.mu

return [Re == (V*rho*l/mu),
return [Re == V*rho*l/mu,
Cf >= 0.455/Re**0.3,
]

Expand Down
2 changes: 1 addition & 1 deletion gpkitmodels/GP/aircraft/wing/wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def setup(self, static, state,
independentvars = [self.CL, self.Re, static.planform.tau]

return [Cd >= cdp + CL**2/np.pi/AR/e,
Re == (rho*V*cmac/mu),
Re == rho*V*cmac/mu,
# XfoilFit(fd, cdp, [CL, Re], airfoil="jho1.dat"),
XfoilFit(fd, cdp, independentvars),
CL <= CLstall
Expand Down
5 changes: 3 additions & 2 deletions gpkitmodels/GP/aircraft/wing/wing_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
" wing test "
from gpkitmodels.GP.aircraft.wing.wing import Wing
from gpkitmodels.GP.aircraft.wing.boxspar import BoxSpar
from gpkit import Variable, Model, parse_variables
from gpkit import Model, parse_variables

#pylint: disable=no-member
#pylint: disable=no-member, exec-used

class FlightState(Model):
""" Flight State
Expand Down Expand Up @@ -74,6 +74,7 @@ def box_spar():
m.solve(verbosity=0)

def test():
" tests "
wing_test()
box_spar()

Expand Down

0 comments on commit 9e017e2

Please sign in to comment.