Skip to content

Commit

Permalink
Remove tuple expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMauderer committed Sep 5, 2024
1 parent 05613be commit 4f06a43
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions colour/io/luts/tests/test_clf.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ def test_range_example(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.i10)
self.assertEqual(node.out_bit_depth, clf.BitDepth.i10)
self.assertEqual(node.description, "10-bit full range to SMPTE range")
(self.assertEqual(node.min_in_value, 0.0),)
(self.assertEqual(node.min_out_value, 64.0),)
(self.assertEqual(node.max_out_value, 940.0),)
self.assertEqual(node.min_in_value, 0.0)
self.assertEqual(node.min_out_value, 64.0)
self.assertEqual(node.max_out_value, 940.0)

def test_log_example_1(self):
"""
Expand All @@ -284,8 +284,8 @@ def test_log_example_1(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f16)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f16)
self.assertEqual(node.description, "Base 10 Logarithm")
(self.assertEqual(node.style, clf.LogStyle.LOG_10),)
(self.assertEqual(node.log_params, None),)
self.assertEqual(node.style, clf.LogStyle.LOG_10)
self.assertEqual(node.log_params, None)

def test_log_example_2(self):
"""
Expand All @@ -308,7 +308,7 @@ def test_log_example_2(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.description, "Linear to DJI D-Log")
(self.assertEqual(node.style, clf.LogStyle.CAMERA_LIN_TO_LOG),)
self.assertEqual(node.style, clf.LogStyle.CAMERA_LIN_TO_LOG)
self.assertAlmostEqual(node.log_params.base, 10.0)
self.assertAlmostEqual(node.log_params.log_side_slope, 0.256663)
self.assertAlmostEqual(node.log_params.log_side_offset, 0.584555)
Expand Down Expand Up @@ -336,7 +336,7 @@ def test_exponent_example_1(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.description, "Basic 2.2 Gamma")
(self.assertEqual(node.style, clf.ExponentStyle.BASIC_FWD),)
self.assertEqual(node.style, clf.ExponentStyle.BASIC_FWD)
self.assertAlmostEqual(node.exponent_params.exponent, 2.2)

def test_exponent_example_2(self):
Expand All @@ -358,7 +358,7 @@ def test_exponent_example_2(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.description, "EOTF (sRGB)")
(self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_FWD),)
self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_FWD)
self.assertAlmostEqual(node.exponent_params.exponent, 2.4)
self.assertAlmostEqual(node.exponent_params.offset, 0.055)

Expand All @@ -381,7 +381,7 @@ def test_exponent_example_3(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.description, "CIE L*")
(self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_REV),)
self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_REV)
self.assertAlmostEqual(node.exponent_params.exponent, 3.0)
self.assertAlmostEqual(node.exponent_params.offset, 0.16)

Expand All @@ -404,7 +404,7 @@ def test_exponent_example_4(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f32)
self.assertEqual(node.description, "Rec. 709 OETF")
(self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_REV),)
self.assertEqual(node.style, clf.ExponentStyle.MON_CURVE_REV)
self.assertAlmostEqual(node.exponent_params.exponent, 2.2222222222222222)
self.assertAlmostEqual(node.exponent_params.offset, 0.099)

Expand Down Expand Up @@ -434,7 +434,7 @@ def test_ASC_CDL_example(self):
self.assertEqual(node.in_bit_depth, clf.BitDepth.f16)
self.assertEqual(node.out_bit_depth, clf.BitDepth.f16)
self.assertEqual(node.description, "scene 1 exterior look")
(self.assertEqual(node.style, clf.ASC_CDL_Style.FWD),)
self.assertEqual(node.style, clf.ASC_CDL_Style.FWD)
self.assertEqual(node.sopnode.slope, (1.000000, 1.000000, 0.900000))
self.assertEqual(node.sopnode.offset, (-0.030000, -0.020000, 0.000000))
self.assertEqual(node.sopnode.power, (1.2500000, 1.000000, 1.000000))
Expand Down

0 comments on commit 4f06a43

Please sign in to comment.