|
4 | 4 | ================================================= |
5 | 5 | """ |
6 | 6 |
|
7 | | -from __future__ import division, unicode_literals |
8 | | - |
9 | 7 | import urllib.parse |
10 | 8 | import sys |
11 | 9 | from dash.dependencies import Input, Output |
|
17 | 15 | from app import APP, SERVER_URL |
18 | 16 | from apps.common import (CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS, |
19 | 17 | NUKE_COLORMATRIX_NODE_TEMPLATE, |
20 | | - RGB_COLOURSPACES_OPTIONS, nuke_format_matrix) |
| 18 | + RGB_COLOURSPACE_OPTIONS, nuke_format_matrix) |
21 | 19 |
|
22 | 20 | __author__ = 'Colour Developers' |
23 | | -__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers' |
| 21 | +__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers' |
24 | 22 | __license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause' |
25 | 23 | __maintainer__ = 'Colour Developers' |
26 | | -__email__ = 'colour-[email protected]' |
| 24 | +__email__ = 'colour-[email protected]' |
27 | 25 | __status__ = 'Production' |
28 | 26 |
|
29 | 27 | __all__ = [ |
|
69 | 67 | H5(children='Input Colourspace'), |
70 | 68 | Dropdown( |
71 | 69 | id='input-colourspace-{0}'.format(APP_UID), |
72 | | - options=RGB_COLOURSPACES_OPTIONS, |
73 | | - value=RGB_COLOURSPACES_OPTIONS[0]['value'], |
| 70 | + options=RGB_COLOURSPACE_OPTIONS, |
| 71 | + value=RGB_COLOURSPACE_OPTIONS[0]['value'], |
74 | 72 | clearable=False, |
75 | 73 | className='app-widget'), |
76 | 74 | H5(children='Output Colourspace'), |
77 | 75 | Dropdown( |
78 | 76 | id='output-colourspace-{0}'.format(APP_UID), |
79 | | - options=RGB_COLOURSPACES_OPTIONS, |
80 | | - value=RGB_COLOURSPACES_OPTIONS[0]['value'], |
| 77 | + options=RGB_COLOURSPACE_OPTIONS, |
| 78 | + value=RGB_COLOURSPACE_OPTIONS[0]['value'], |
81 | 79 | clearable=False, |
82 | 80 | className='app-widget'), |
83 | 81 | H5(children='Chromatic Adaptation Transform'), |
@@ -185,7 +183,7 @@ def set_RGB_to_RGB_matrix_output(input_colourspace, output_colourspace, |
185 | 183 | Colour transformation matrix. |
186 | 184 | """ |
187 | 185 |
|
188 | | - M = colour.RGB_to_RGB_matrix(colour.RGB_COLOURSPACES[input_colourspace], |
| 186 | + M = colour.matrix_RGB_to_RGB(colour.RGB_COLOURSPACES[input_colourspace], |
189 | 187 | colour.RGB_COLOURSPACES[output_colourspace], |
190 | 188 | chromatic_adaptation_transform) |
191 | 189 |
|
|
0 commit comments