def testEEP(self):
    self.myobj.compute(self.inputs, self.outputs, self.discrete_inputs, self.discrete_outputs)
    print('eep', self.outputs['stage_ratios'], self.outputs['gearbox_mass'])
    self.assertAlmostEqual(np.prod(self.outputs['stage_ratios']), self.inputs['gear_ratio'], 1)
    npt.assert_equal(self.outputs['gearbox_I'][0], (((0.5 * self.outputs['gearbox_mass']) * 0.25) * (self.outputs['D_gearbox'] ** 2)))
    npt.assert_almost_equal(self.outputs['gearbox_I'][1:], ((self.outputs['gearbox_mass'] * ((0.75 * (self.outputs['D_gearbox'] ** 2)) + (self.outputs['L_gearbox'] ** 2))) / 12.0))
    self.assertEqual(self.outputs['L_gearbox'], (0.012 * 126.0))
    self.assertEqual(self.outputs['D_gearbox'], ((0.75 * 0.015) * 126.0))
def testEEP(self):
    self.myobj.compute(self.inputs, self.outputs, self.discrete_inputs, self.discrete_outputs)
    print('eep', self.outputs['stage_ratios'], self.outputs['gearbox_mass'])
    self.assertAlmostEqual(np.prod(self.outputs['stage_ratios']), self.inputs['gear_ratio'], 1)
    npt.assert_equal(self.outputs['gearbox_I'][0], (((0.5 * self.outputs['gearbox_mass']) * 0.25) * (self.outputs['D_gearbox'] ** 2)))
    npt.assert_almost_equal(self.outputs['gearbox_I'][1:], ((self.outputs['gearbox_mass'] * ((0.75 * (self.outputs['D_gearbox'] ** 2)) + (self.outputs['L_gearbox'] ** 2))) / 12.0))
    self.assertEqual(self.outputs['L_gearbox'], (0.012 * 126.0))
    self.assertEqual(self.outputs['D_gearbox'], ((0.75 * 0.015) * 126.0))