@@ -36,22 +36,22 @@ def setUp(self):
3636 lut1d = os .path .join (test_dir , 'CineonToLin_1D.csp' )
3737 lut3d = os .path .join (test_dir , 'saturation.3dl' )
3838 self .processor_1d = create_ocio_processor (lut1d ,
39- interpolation = INTERP_LINEAR )
39+ interpolation = INTERP_LINEAR )
4040 self .processor_3d = create_ocio_processor (lut3d ,
41- interpolation = INTERP_TETRAHEDRAL )
41+ interpolation = INTERP_TETRAHEDRAL )
4242 self .helpers_1d_to_test = [
43- (CUBE_HELPER , '.cube' ),
44- [SPI_HELPER , '.spi1d' ],
45- (CSP_HELPER , '.csp' ),
46- ]
43+ (CUBE_HELPER , '.cube' ),
44+ [SPI_HELPER , '.spi1d' ],
45+ (CSP_HELPER , '.csp' ),
46+ ]
4747 self .helpers_3d_to_test = [
48- (CUBE_HELPER , '.cube' , True ),
49- [SPI_HELPER , '.spi3d' , True ],
50- (CSP_HELPER , '.csp' , True ),
51- (THREEDL_HELPER , '.3dl' , True ),
52- (CLCC_HELPER , '.cc' , False ),
53- (JSON_HELPER , '.json' , False )
54- ]
48+ (CUBE_HELPER , '.cube' , True ),
49+ [SPI_HELPER , '.spi3d' , True ],
50+ (CSP_HELPER , '.csp' , True ),
51+ (THREEDL_HELPER , '.3dl' , True ),
52+ (CLCC_HELPER , '.cc' , False ),
53+ (JSON_HELPER , '.json' , False )
54+ ]
5555
5656 def test_default_1d_lut (self ):
5757 """ Test a default 1d LUT export
@@ -129,11 +129,11 @@ def test_check_attributes(self):
129129 CUBE_HELPER .check_preset (cust_preset )
130130 # try to write a 1D LUT with a 3D preset
131131 self .failUnlessRaises (alh .AbstractLUTException ,
132- CUBE_HELPER .write_1d_lut ,
133- self .processor_1d ,
134- outlutfile ,
135- cust_preset )
136- ## test value type
132+ CUBE_HELPER .write_1d_lut ,
133+ self .processor_1d ,
134+ outlutfile ,
135+ cust_preset )
136+ # # test value type
137137 # cube size
138138 cust_preset [presets .CUBE_SIZE ] = presets .CUBE_SIZE_MAX_VALUE + 1
139139 self .failUnlessRaises (presets .PresetException ,
@@ -177,15 +177,15 @@ def test_float_luts(self):
177177 10 )
178178 # write encode LUT
179179 helper .write_2d_lut (colorspace .encode_gradation ,
180- encode_filepath ,
181- args_1d )
180+ encode_filepath ,
181+ args_1d )
182182 # write decode LUT
183183 args_1d [presets .IN_RANGE ] = get_input_range (colorspace ,
184184 "decode" ,
185185 10 )
186186 helper .write_2d_lut (colorspace .decode_gradation ,
187- decode_filepath ,
188- args_1d )
187+ decode_filepath ,
188+ args_1d )
189189 # test transparency
190190 proc = create_ocio_processor (encode_filepath ,
191191 postlutfile = decode_filepath ,
@@ -201,8 +201,8 @@ def test_float_luts(self):
201201 self .assert_ (abs_value < delta ,
202202 "{0} transparency test failed : {1:8f} >"
203203 " acceptable delta ({2:8f})" .format (name ,
204- abs_value ,
205- delta )
204+ abs_value ,
205+ delta )
206206 )
207207
208208 def test_3dl_preset (self ):
@@ -247,14 +247,14 @@ def test_ascii_lut(self):
247247 outlutfile = os .path .join (self .tmp_dir , "default_2D.lut" )
248248 preset = ASCII_HELPER .get_default_preset ()
249249 ASCII_HELPER .write_2d_lut (colorspace .decode_gradation ,
250- outlutfile ,
251- preset )
250+ outlutfile ,
251+ preset )
252252 # 1D LUT
253253 outlutfile = os .path .join (self .tmp_dir , "default_1D.lut" )
254254 preset = ASCII_HELPER .get_default_preset ()
255255 ASCII_HELPER .write_1d_lut (colorspace .decode_gradation ,
256- outlutfile ,
257- preset )
256+ outlutfile ,
257+ preset )
258258 # test out bit depth inadequate with output range
259259 preset [OUT_BITDEPTH ] = 12
260260 self .failUnlessRaises (AsciiHelperException , ASCII_HELPER .write_1d_lut ,
@@ -278,17 +278,17 @@ def test_complete_attributes(self):
278278 # try to write a float ascii lut without forcing float mode
279279 cust_preset [presets .IN_RANGE ] = [0 , 1.0 ]
280280 self .failUnlessRaises (PresetException , ASCII_HELPER .write_1d_lut ,
281- colorspace .decode_gradation ,
282- outlutfile ,
283- cust_preset )
281+ colorspace .decode_gradation ,
282+ outlutfile ,
283+ cust_preset )
284284 # force float mode
285285 cust_preset [presets .IS_FLOAT ] = True
286286 ASCII_HELPER .write_1d_lut (colorspace .decode_gradation ,
287287 outlutfile ,
288288 cust_preset )
289289
290290 def tearDown (self ):
291- #Remove test directory
291+ # Remove test directory
292292 shutil .rmtree (self .tmp_dir )
293293
294294
0 commit comments