Beispiel #1
0
    def test_lagrange_coefficients_ASTME202211(self):
        """
        Tests :func:`colour.colorimetry.tristimulus.\
    lagrange_coefficients_ASTME202211` definition.
        """

        np.testing.assert_almost_equal(lagrange_coefficients_ASTME202211(
            10, 'inner'),
                                       LAGRANGE_COEFFICIENTS_A,
                                       decimal=7)

        np.testing.assert_almost_equal(lagrange_coefficients_ASTME202211(
            10, 'boundary'),
                                       LAGRANGE_COEFFICIENTS_B,
                                       decimal=7)
Beispiel #2
0
    def test_lagrange_coefficients_ASTME202211(self):
        """
        Tests :func:`colour.colorimetry.tristimulus.\
    lagrange_coefficients_ASTME202211` definition.
        """

        np.testing.assert_almost_equal(
            lagrange_coefficients_ASTME202211(10, 'inner'),
            LAGRANGE_COEFFICIENTS_A,
            decimal=7)

        np.testing.assert_almost_equal(
            lagrange_coefficients_ASTME202211(10, 'boundary'),
            LAGRANGE_COEFFICIENTS_B,
            decimal=7)