Skip to content

Commit

Permalink
delete flight_model method
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Oct 12, 2017
1 parent 95b12e7 commit c43fe50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions gpkitmodels/GP/aircraft/tail/horizontal_tail.py
Expand Up @@ -50,7 +50,6 @@ def setup(self, N=3, lam=0.8):
* (self.surf["b"]/2)*self.surf["d\\eta"]).sum()
]

return constraints, self.surf, self.components
self.flight_model = TailAero

def flight_model(self, state):
return TailAero(self, state)
return constraints, self.surf, self.components
5 changes: 2 additions & 3 deletions gpkitmodels/GP/aircraft/tail/vertical_tail.py
Expand Up @@ -45,7 +45,6 @@ def setup(self, N=3, lam=0.8):
* (self.surf["b"]/2)*self.surf["d\\eta"]).sum()
]

return constraints, self.surf, self.components
self.flight_model = TailAero

def flight_model(self, state):
return TailAero(self, state)
return constraints, self.surf, self.components

0 comments on commit c43fe50

Please sign in to comment.