Ensure that "colour.IPT_to_XYZ" definition unit tests are reciprocal.
@@ -106,18 +106,18 @@ class TestIPT_to_XYZ(unittest.TestCase):
"""
np.testing.assert_almost_equal(
- IPT_to_XYZ(np.array([1.00300825, 0.01906918, -0.01369292])),
- np.array([0.96907232, 1.00000000, 1.12179215]),
+ IPT_to_XYZ(np.array([0.36571124, -0.11114798, 0.01594746])),
+ np.array([0.07049534, 0.10080000, 0.09558313]),
decimal=7)
np.testing.assert_almost_equal(
- IPT_to_XYZ(np.array([0.73974548, 0.95333412, 1.71951212])),
- np.array([1.92001986, 1.00000000, -0.12413470]),
+ IPT_to_XYZ(np.array([0.59168030, 0.34150712, 0.33282621])),
+ np.array([0.47097710, 0.34950000, 0.11301649]),
decimal=7)
np.testing.assert_almost_equal(
- IPT_to_XYZ(np.array([1.06406598, -0.08075812, -0.39625384])),
- np.array([1.01316770, 1.00000000, 2.11217686]),
+ IPT_to_XYZ(np.array([0.46626813, 0.25471184, 0.19904068])),
+ np.array([0.25506814, 0.19150000, 0.08849752]),
decimal=7)
def test_n_dimensional_IPT_to_XYZ(self):
