From 0c69264f95038bfc1060893a3f74296b3b101987 Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Fri, 31 Jul 2015 22:13:36 +1200 Subject: [PATCH] Code formatting. --- aces_1.0.0/python/aces_ocio/colorspaces/arri.py | 6 ++--- aces_1.0.0/python/aces_ocio/lut.py | 28 +++++++++++------------ aces_1.0.0/python/aces_ocio/utilities.py | 5 ++-- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/aces_1.0.0/python/aces_ocio/colorspaces/arri.py b/aces_1.0.0/python/aces_ocio/colorspaces/arri.py index 6ef5eae..10dc35d 100644 --- a/aces_1.0.0/python/aces_ocio/colorspaces/arri.py +++ b/aces_1.0.0/python/aces_ocio/colorspaces/arri.py @@ -152,8 +152,7 @@ def create_log_c(gamut, 'type': 'lutFile', 'path': lut, 'interpolation': 'linear', - 'direction': 'forward' - }) + 'direction': 'forward'}) if gamut == 'Wide Gamut': cs.to_reference_transforms.append({ @@ -161,8 +160,7 @@ def create_log_c(gamut, 'matrix': mat44_from_mat33([0.680206, 0.236137, 0.083658, 0.085415, 1.017471, -0.102886, 0.002057, -0.062563, 1.060506]), - 'direction': 'forward' - }) + 'direction': 'forward'}) cs.from_reference_transforms = [] return cs diff --git a/aces_1.0.0/python/aces_ocio/lut.py b/aces_1.0.0/python/aces_ocio/lut.py index e83a7c5..b0aab12 100755 --- a/aces_1.0.0/python/aces_ocio/lut.py +++ b/aces_1.0.0/python/aces_ocio/lut.py @@ -829,19 +829,19 @@ def main(): else: print('3D LUT generation options') - print('lut : %s' % lut) - print('format : %s' % format) - print('ctls : %s' % ctls) - print('lut res 1d : %s' % lut_resolution_1d) - print('lut res 3d : %s' % lut_resolution_3d) - print('min value : %s' % min_value) - print('max value : %s' % max_value) - print('input scale : %s' % input_scale) - print('output scale : %s' % output_scale) - print('ctl render params : %s' % params) - print('ctl release path : %s' % ctl_release_path) - print('bit depth of input : %s' % bit_depth) - print('cleanup temp images : %s' % cleanup) + print('Lut : %s' % lut) + print('Format : %s' % format) + print('CTLs : %s' % ctls) + print('Lut Res 1d : %s' % lut_resolution_1d) + print('Lut Res 3d : %s' % lut_resolution_3d) + print('Min Value : %s' % min_value) + print('Max Value : %s' % max_value) + print('Input Scale : %s' % input_scale) + print('Output Scale : %s' % output_scale) + print('CTL Render Params : %s' % params) + print('CTL Release Path : %s' % ctl_release_path) + print('Input Bit Depth : %s' % bit_depth) + print('Cleanup Temp Images : %s' % cleanup) if generate_1d: generate_1d_LUT_from_CTL(lut, @@ -869,7 +869,7 @@ def main(): ctl_release_path, format=format) else: - print(('\n\nNo LUT generated. ' + print(('\n\nNo LUT generated! ' 'You must choose either 1D or 3D LUT generation\n\n')) diff --git a/aces_1.0.0/python/aces_ocio/utilities.py b/aces_1.0.0/python/aces_ocio/utilities.py index 7ba5e5a..6f30f3a 100644 --- a/aces_1.0.0/python/aces_ocio/utilities.py +++ b/aces_1.0.0/python/aces_ocio/utilities.py @@ -289,6 +289,5 @@ def unpack_default(iterable, length=3, default=None): iterable """ - return itertools.islice(itertools.chain(iter(iterable), - itertools.repeat(default)), - length) + return itertools.islice( + itertools.chain(iter(iterable), itertools.repeat(default)), length) -- 1.7.10.4