コード例 #1
0
    def test_08(self):

        # test alt_setting out of order

        Value = SA.density_alt(7500, 85, temp_units="F", RH=0.8, alt_setting=29.8)
        Truth = 11418
        self.failUnless(RE(Value, Truth) <= 5e-4)
コード例 #2
0
    def test_06(self):

        # test dew point out of order

        Value = SA.density_alt(7000, 75, 29.75, temp_units='F', DP=45)
        Truth = 9921
        self.assertTrue(RE(Value, Truth) <= 2e-4)
コード例 #3
0
    def test_06(self):

        # test dew point out of order

        Value = SA.density_alt(7000, 75, 29.75, temp_units='F', DP=45)
        Truth = 9921
        self.failUnless(RE(Value, Truth) <= 2e-4)
コード例 #4
0
    def test_08(self):

        # test alt_setting out of order

        Value = SA.density_alt(7500, 85, temp_units='F', RH=.8,
                               alt_setting=29.8)
        Truth = 11418
        self.failUnless(RE(Value, Truth) <= 5e-4)
コード例 #5
0
 def test_07(self):
     Value = SA.density_alt(2000, 20, 999, 10, alt_units='m')
     Truth = 2829
     self.assertTrue(RE(Value, Truth) <= 2e-4)
コード例 #6
0
 def test_05(self):
     Value = SA.density_alt(9080, 13, 1024)
     Truth = 10554
     self.assertAlmostEqual(Value, Truth, places=0)
コード例 #7
0
 def test_04(self):
     Value = SA.density_alt(5000, 0, 29.5)
     Truth = 4875
     self.assertAlmostEqual(Value, Truth, places=0)
コード例 #8
0
 def test_03(self):
     Value = SA.density_alt(9080, 13, 1024)
     Truth = 10554
     self.assertTrue(RE(Value, Truth) <= 5e-5)
コード例 #9
0
 def test_02(self):
     Value = SA.density_alt(6000, 75, 29.8, temp_units='F')
     Truth = 8492
     self.assertTrue(RE(Value, Truth) <= 2e-5)
コード例 #10
0
 def test_01(self):
     PR = SA.density_alt(0, 15)
     self.assertAlmostEqual(PR, 0, places=0)
コード例 #11
0
 def test_07(self):
     Value = SA.density_alt(2000, 20, 999, 10, alt_units='m')
     Truth = 2829
     self.failUnless(RE(Value, Truth) <= 2e-4)
コード例 #12
0
 def test_05(self):
     Value = SA.density_alt(9080, 13, 1024)
     Truth = 10554
     self.assertAlmostEqual(Value, Truth, 0)
コード例 #13
0
 def test_04(self):
     Value = SA.density_alt(5000, 0, 29.5)
     Truth = 4875
     self.assertAlmostEqual(Value, Truth, 0)
コード例 #14
0
 def test_03(self):
     Value = SA.density_alt(9080, 13, 1024)
     Truth = 10554
     self.failUnless(RE(Value, Truth) <= 5e-5)
コード例 #15
0
 def test_02(self):
     Value = SA.density_alt(6000, 75, 29.8, temp_units='F')
     Truth = 8492
     self.failUnless(RE(Value, Truth) <= 2e-5)
コード例 #16
0
 def test_01(self):
     PR = SA.density_alt(0, 15)
     self.assertAlmostEqual(PR, 0, 0)