Skip to content

Commit

Permalink
additional clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Apr 9, 2018
1 parent fa84027 commit f1d458f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gpkitmodels/GP/aircraft/motor/motor.py
Expand Up @@ -47,7 +47,7 @@ class Motor(Model):
flight_model = MotorPerf

def setup(self):
exec parse_variables(ElecMotor.__doc__)
exec parse_variables(Motor.__doc__)

constraints = [W >= Qstar*Qmax*g]

Expand Down Expand Up @@ -83,7 +83,7 @@ class Propulsor(Model):
W [lbf] propulsor weight
"""
flight_model = Propulsor_Performance
flight_model = PropulsorPerf

def setup(self):
exec parse_variables(Propulsor.__doc__)
Expand Down
12 changes: 6 additions & 6 deletions gpkitmodels/GP/aircraft/motor/motor_test.py
Expand Up @@ -28,8 +28,8 @@ def propulsor_test():
class Motor_P_Test(Model):
def setup(self):
fs = FlightState()
m = ElecMotor()
mp = ElecMotor_Performance(m,fs)
m = Motor()
mp = MotorPerf(m,fs)
self.mp = mp
mp.substitutions[m.Qmax] = 100
mp.substitutions[mp.Q] = 10
Expand All @@ -39,8 +39,8 @@ def setup(self):
class speed_280_motor(Model):
def setup(self):
fs = FlightState()
m = ElecMotor()
mp = ElecMotor_Performance(m,fs)
m = Motor()
mp = MotorPerf(m,fs)
self.mp = mp
mp.substitutions[m.Qmax] = 100
mp.substitutions[mp.R] = .7
Expand All @@ -52,8 +52,8 @@ def setup(self):
class hacker_q150_45_motor(Model):
def setup(self):
fs = FlightState()
m = ElecMotor()
mp = ElecMotor_Performance(m,fs)
m = Motor()
mp = MotorPerf(m,fs)
self.mp = mp
mp.substitutions[m.Qmax] = 10000
mp.substitutions[mp.R] = .033
Expand Down

0 comments on commit f1d458f

Please sign in to comment.