コード例 #1
0
    def test_get_mag_h_from_obs(self):
        """ChannelConverter_test.test_get_mag_h_from_obs()

        ``h`` and ``e`` are the primary and secondary components of the ``H``
        vector.
        """

        # Call get_mag_h_from_obs using h,e of 3,4. Expect H to be 5.
        h = 3
        e = 4
        H = channel.get_mag_h_from_obs(h, e)
        assert_almost_equal(H, 5, 8, "Expect H to be 5.", True)