예제 #1
0
    def test_corresponding_chromaticities_prediction_Fairchild1990(self):
        """
        Tests :func:`colour.corresponding.prediction.\
corresponding_chromaticities_prediction_Fairchild1990` definition.
        """

        np.testing.assert_almost_equal(np.array([
            (p.uvp_m, p.uvp_p)
            for p in corresponding_chromaticities_prediction_Fairchild1990()
        ]),
                                       FAIRCHILD1990_PREDICTION_DATA,
                                       decimal=7)
예제 #2
0
    def test_corresponding_chromaticities_prediction_Fairchild1990(self):
        """
        Tests :func:`colour.corresponding.prediction.\
corresponding_chromaticities_prediction_Fairchild1990` definition.
        """

        np.testing.assert_almost_equal(
            np.array(
                [(p.uvp_m, p.uvp_p) for p in
                 corresponding_chromaticities_prediction_Fairchild1990()]),
            FAIRCHILD1990_PREDICTION_DATA,
            decimal=7)