def test_aces_proxy(self):
        ref_colors = [[0.001184464, 64.0, 0.001185417],
                      [222.875, 940.0, 222.860944204]
                      ]
        ACES_to_proxy_matrix = get_RGB_to_RGB_matrix('ACES', 'ACESproxy_10')
        proxy_to_ACES_matrix = get_RGB_to_RGB_matrix('ACESproxy_10', 'ACES')
        for color in ref_colors:
            aces_proxy_lin = apply_matrix(ACES_to_proxy_matrix, [color[0]]*3)[2]
            aces_proxy = ACESPROXY_10i._encode_gradation(aces_proxy_lin)
            self.assertEqual(aces_proxy, color[1])
            aces_proxy_lin = ACESPROXY_10i._decode_gradation(aces_proxy)
            aces = apply_matrix(proxy_to_ACES_matrix, [aces_proxy_lin]*3)[0]
            message = ("ACESproxy not valid ! "
                       "in: {0} out: {1}").format(aces, color[2])
            self.assertTrue(numpy.isclose(aces, color[2], atol=0.000001), message)
Test ACES proxy (matrix + encoding)
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/colorspaces_test.py/ColorspaceTest.test_aces_proxy