コード例 #1
0
ファイル: tests_log.py プロジェクト: aforsythe/colour
    def test_pivoted_log_to_linear(self):
        """
        Tests :func:`colour.models.log.pivoted_log_to_linear` definition.
        """

        self.assertAlmostEqual(
            pivoted_log_to_linear(0.066880008278600425),
            0.01,
            places=7)

        self.assertAlmostEqual(
            pivoted_log_to_linear(0.43499511241446726),
            0.18,
            places=7)

        self.assertAlmostEqual(
            pivoted_log_to_linear(0.6533902722082191),
            1,
            places=7)