Skip to content

Commit adb11c7

Browse files
committed
Merge branch 'release/v0.1.12'
2 parents 99a1d32 + cc1573e commit adb11c7

13 files changed

+86
-97
lines changed

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This Code of Conduct applies within all project spaces, and it also applies when
3636
## Enforcement
3737

3838

39-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting Thomas Mansencal and Michael Mauderer via email at thomas[email protected] and michael@mauderer.me respectively. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting Thomas Mansencal and Michael Mauderer via email at thomas@colour-science.org and michael@colour-science.org respectively. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
4040

4141
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.
4242

CONTRIBUTORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ About
1212
-----
1313

1414
| **Colour - Dash** by Colour Developers
15-
| Copyright © 2018-2019 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__
15+
| Copyright © 2018-2020 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__
1616
| This software is released under terms of New BSD License: https://opensource.org/licenses/BSD-3-Clause
1717
| `https://github.com/colour-science/colour-dash <https://github.com/colour-science/colour-dash>`__

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.8
22

33
WORKDIR /tmp
44
COPY ./requirements.txt /tmp

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2018, Colour Developers
1+
Copyright (C) 2018-2020, Colour Developers
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ About
4949
-----
5050

5151
| **Colour - Dash** by Colour Developers
52-
| Copyright © 2018-2019 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__
52+
| Copyright © 2018-2020 – Colour Developers – `colour-[email protected] <colour-[email protected]>`__
5353
| This software is released under terms of New BSD License: https://opensource.org/licenses/BSD-3-Clause
5454
| `https://github.com/colour-science/colour-dash <https://github.com/colour-science/colour-dash>`__

app.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@
44
===========
55
"""
66

7-
from __future__ import division, unicode_literals
8-
97
import dash
108
import os
119
from flask import Flask
1210

1311
__author__ = 'Colour Developers'
14-
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers'
12+
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers'
1513
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
1614
__maintainer__ = 'Colour Developers'
17-
__email__ = 'colour-[email protected]'
15+
__email__ = 'colour-[email protected]'
1816
__status__ = 'Production'
1917

2018
__application_name__ = 'Colour - Dash'
2119

2220
__major_version__ = '0'
2321
__minor_version__ = '1'
24-
__change_version__ = '11'
22+
__change_version__ = '12'
2523
__version__ = '.'.join(
2624
(__major_version__,
2725
__minor_version__,

apps/common.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@
44
======
55
"""
66

7-
from __future__ import division, unicode_literals
8-
97
import colour
108

119
__author__ = 'Colour Developers'
12-
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers'
10+
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers'
1311
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
1412
__maintainer__ = 'Colour Developers'
15-
__email__ = 'colour-[email protected]'
13+
__email__ = 'colour-[email protected]'
1614
__status__ = 'Production'
1715

1816
__all__ = [
19-
'RGB_COLOURSPACES_OPTIONS', 'CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS',
17+
'RGB_COLOURSPACE_OPTIONS', 'CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS',
2018
'ILLUMINANTS_OPTIONS', 'NUKE_COLORMATRIX_NODE_TEMPLATE',
2119
'nuke_format_matrix'
2220
]
2321

24-
RGB_COLOURSPACES_OPTIONS = [{
22+
RGB_COLOURSPACE_OPTIONS = [{
2523
'label': key,
2624
'value': key
27-
} for key in sorted(colour.RGB_COLOURSPACES.keys())]
25+
} for key in sorted(colour.RGB_COLOURSPACES.keys())
26+
if key not in ('aces', 'adobe1998', 'prophoto')]
2827
"""
2928
*RGB* colourspace options for a :class:`Dropdown` class instance.
3029
31-
RGB_COLOURSPACES_OPTIONS : list
30+
RGB_COLOURSPACE_OPTIONS : list
3231
"""
3332

3433
CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS = [{
@@ -45,8 +44,8 @@
4544
ILLUMINANTS_OPTIONS = [{
4645
'label': key,
4746
'value': key
48-
} for key in sorted(colour.ILLUMINANTS['CIE 1931 2 Degree Standard Observer']
49-
.keys())]
47+
} for key in sorted(colour.CCS_ILLUMINANTS[
48+
'CIE 1931 2 Degree Standard Observer'].keys())]
5049
"""
5150
*CIE 1931 2 Degree Standard Observer* illuminant options for a
5251
:class:`Dropdown`class instance.

apps/rgb_colourspace_chromatically_adapted_primaries.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
===========================================================
55
"""
66

7-
from __future__ import division, unicode_literals
8-
97
import sys
108
import urllib.parse
119
from dash.dependencies import Input, Output
@@ -16,13 +14,13 @@
1614

1715
from app import APP, SERVER_URL
1816
from apps.common import (CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS,
19-
ILLUMINANTS_OPTIONS, RGB_COLOURSPACES_OPTIONS)
17+
ILLUMINANTS_OPTIONS, RGB_COLOURSPACE_OPTIONS)
2018

2119
__author__ = 'Colour Developers'
22-
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers'
20+
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers'
2321
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
2422
__maintainer__ = 'Colour Developers'
25-
__email__ = 'colour-[email protected]'
23+
__email__ = 'colour-[email protected]'
2624
__status__ = 'Production'
2725

2826
__all__ = [
@@ -68,8 +66,8 @@
6866
H5(children='Colourspace'),
6967
Dropdown(
7068
id='colourspace-{0}'.format(APP_UID),
71-
options=RGB_COLOURSPACES_OPTIONS,
72-
value=RGB_COLOURSPACES_OPTIONS[0]['value'],
69+
options=RGB_COLOURSPACE_OPTIONS,
70+
value=RGB_COLOURSPACE_OPTIONS[0]['value'],
7371
clearable=False,
7472
className='app-widget'),
7573
H5(children='Illuminant'),
@@ -180,8 +178,8 @@ def set_primaries_output(colourspace, illuminant,
180178
P = colour.chromatically_adapted_primaries(
181179
colour.RGB_COLOURSPACES[colourspace].primaries,
182180
colour.RGB_COLOURSPACES[colourspace].whitepoint,
183-
colour.ILLUMINANTS['CIE 1931 2 Degree Standard Observer'][illuminant],
184-
chromatic_adaptation_transform)
181+
colour.CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer'][
182+
illuminant], chromatic_adaptation_transform)
185183

186184
with colour.utilities.numpy_print_options(
187185
formatter={'float': ('{{: 0.{0}f}}'.format(decimals)).format},

apps/rgb_colourspace_transformation_matrix.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
=================================================
55
"""
66

7-
from __future__ import division, unicode_literals
8-
97
import urllib.parse
108
import sys
119
from dash.dependencies import Input, Output
@@ -17,13 +15,13 @@
1715
from app import APP, SERVER_URL
1816
from apps.common import (CHROMATIC_ADAPTATION_TRANSFORM_OPTIONS,
1917
NUKE_COLORMATRIX_NODE_TEMPLATE,
20-
RGB_COLOURSPACES_OPTIONS, nuke_format_matrix)
18+
RGB_COLOURSPACE_OPTIONS, nuke_format_matrix)
2119

2220
__author__ = 'Colour Developers'
23-
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers'
21+
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers'
2422
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
2523
__maintainer__ = 'Colour Developers'
26-
__email__ = 'colour-[email protected]'
24+
__email__ = 'colour-[email protected]'
2725
__status__ = 'Production'
2826

2927
__all__ = [
@@ -69,15 +67,15 @@
6967
H5(children='Input Colourspace'),
7068
Dropdown(
7169
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'],
7472
clearable=False,
7573
className='app-widget'),
7674
H5(children='Output Colourspace'),
7775
Dropdown(
7876
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'],
8179
clearable=False,
8280
className='app-widget'),
8381
H5(children='Chromatic Adaptation Transform'),
@@ -185,7 +183,7 @@ def set_RGB_to_RGB_matrix_output(input_colourspace, output_colourspace,
185183
Colour transformation matrix.
186184
"""
187185

188-
M = colour.RGB_to_RGB_matrix(colour.RGB_COLOURSPACES[input_colourspace],
186+
M = colour.matrix_RGB_to_RGB(colour.RGB_COLOURSPACES[input_colourspace],
189187
colour.RGB_COLOURSPACES[output_colourspace],
190188
chromatic_adaptation_transform)
191189

index.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
=====
55
"""
66

7-
from __future__ import division, unicode_literals
8-
97
from dash.dependencies import Input, Output
108
from dash_core_components import Link, Location, Markdown
119
from dash_html_components import A, Div, H3, P
@@ -15,10 +13,10 @@
1513
from app import APP, SERVER # noqa
1614

1715
__author__ = 'Colour Developers'
18-
__copyright__ = 'Copyright (C) 2018-2019 - Colour Developers'
16+
__copyright__ = 'Copyright (C) 2018-2020 - Colour Developers'
1917
__license__ = 'New BSD License - https://opensource.org/licenses/BSD-3-Clause'
2018
__maintainer__ = 'Colour Developers'
21-
__email__ = 'colour-[email protected]'
19+
__email__ = 'colour-[email protected]'
2220
__status__ = 'Production'
2321

2422
__all__ = ['load_app']

0 commit comments

Comments
 (0)