Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 5b9b5fc

Browse files
committed
Update various docstrings and comments.
1 parent a3cd287 commit 5b9b5fc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

aces_1.2/python/aces_ocio/colorspaces/general.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def create_matrix_colorspace(name='matrix',
4141
to_reference_values=None,
4242
aliases=None):
4343
"""
44-
Creates a colorspace that only uses *Matrix Transforms*.
44+
Creates a colorspace expressed as a single or multiple *MatrixTransform*.
4545
4646
Parameters
4747
----------
@@ -59,7 +59,7 @@ def create_matrix_colorspace(name='matrix',
5959
Returns
6060
-------
6161
ColorSpace
62-
A *Matrix Transform*-based colorspace.
62+
A colorspace expressed as a single or multiple *MatrixTransform*.
6363
"""
6464

6565
if from_reference_values is None:
@@ -119,7 +119,7 @@ def create_transfer_colorspace(name='transfer',
119119
lut_resolution_1D=1024,
120120
aliases=None):
121121
"""
122-
Creates a colorspace that only uses transfer functions encoded as 1D LUTs.
122+
Creates a colorspace expressed as a *FileTransform* transformation.
123123
124124
Parameters
125125
----------
@@ -139,7 +139,7 @@ def create_transfer_colorspace(name='transfer',
139139
Returns
140140
-------
141141
ColorSpace
142-
A *LUT1D Transform*-based colorspace representing a transfer function.
142+
A colorspace expressed as a *FileTransform* transformation.
143143
"""
144144

145145
if aliases is None:
@@ -152,7 +152,6 @@ def create_transfer_colorspace(name='transfer',
152152
cs.family = 'Utility'
153153
cs.is_data = False
154154

155-
# A linear space needs allocation variables.
156155
cs.allocation_type = ocio.Constants.ALLOCATION_UNIFORM
157156
cs.allocation_vars = [0, 1]
158157

@@ -194,8 +193,8 @@ def create_matrix_plus_transfer_colorspace(
194193
to_reference_values=None,
195194
aliases=None):
196195
"""
197-
Creates a colorspace that uses transfer functions encoded as 1D LUTs and
198-
matrix
196+
Creates a colorspace expressed as a single or multiple *MatrixTransform*
197+
and 1D LUT *FileTransform* transformations.
199198
200199
Parameters
201200
----------
@@ -221,8 +220,8 @@ def create_matrix_plus_transfer_colorspace(
221220
Returns
222221
-------
223222
ColorSpace
224-
A *Matrx and LUT1D Transform*-based colorspace representing a transfer
225-
function and matrix.
223+
A colorspace expressed as a single or multiple *MatrixTransform* and
224+
1D LUT *FileTransform* transformations.
226225
"""
227226

228227
if from_reference_values is None:
@@ -659,7 +658,7 @@ def create_colorspaces(lut_directory, lut_resolution_1D=1024):
659658
# -------------------------------------------------------------------------
660659
# Rec 709
661660
# -------------------------------------------------------------------------
662-
# *sRGB* and *Rec 709* use the same gamut.
661+
# *sRGB* and *Rec. 709* use the same primaries.
663662
cs = create_matrix_colorspace(
664663
'Linear - Rec.709',
665664
from_reference_values=[aces.ACES_AP0_TO_XYZ, XYZ_to_Rec709],

0 commit comments

Comments
 (0)