Skip to content

Commit 0f5e955

Browse files
committed
Update docstrings in colour.temperature package.
1 parent 3dc9dba commit 0f5e955

File tree

9 files changed

+40
-40
lines changed

9 files changed

+40
-40
lines changed

colour/temperature/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ def uv_to_CCT(
144144
**kwargs: Any,
145145
) -> NDArrayFloat:
146146
"""
147-
Return the correlated colour temperature :math:`T_{cp}` and
148-
:math:`\\Delta_{uv}` from given *CIE UCS* colourspace *uv* chromaticity
149-
coordinates using given method.
147+
Compute the correlated colour temperature :math:`T_{cp}` and
148+
:math:`\\Delta_{uv}` from specified *CIE UCS* colourspace *uv* chromaticity
149+
coordinates using specified method.
150150
151151
Parameters
152152
----------
@@ -237,8 +237,8 @@ def CCT_to_uv(
237237
**kwargs: Any,
238238
) -> NDArrayFloat:
239239
"""
240-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
241-
correlated colour temperature :math:`T_{cp}` using given method.
240+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
241+
correlated colour temperature :math:`T_{cp}` using specified method.
242242
243243
Parameters
244244
----------
@@ -332,8 +332,8 @@ def xy_to_CCT(
332332
) = "CIE Illuminant D Series",
333333
) -> NDArrayFloat:
334334
"""
335-
Return the correlated colour temperature :math:`T_{cp}` from given
336-
*CIE xy* chromaticity coordinates using given method.
335+
Compute the correlated colour temperature :math:`T_{cp}` from specified
336+
*CIE xy* chromaticity coordinates using specified method.
337337
338338
Parameters
339339
----------
@@ -417,8 +417,8 @@ def CCT_to_xy(
417417
) = "CIE Illuminant D Series",
418418
) -> NDArrayFloat:
419419
"""
420-
Return the *CIE xy* chromaticity coordinates from given correlated colour
421-
temperature :math:`T_{cp}` using given method.
420+
Compute the *CIE xy* chromaticity coordinates from specified correlated colour
421+
temperature :math:`T_{cp}` using specified method.
422422
423423
Parameters
424424
----------

colour/temperature/cie_d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def xy_to_CCT_CIE_D(
5151
xy: ArrayLike, optimisation_kwargs: dict | None = None
5252
) -> NDArrayFloat:
5353
"""
54-
Return the correlated colour temperature :math:`T_{cp}` of a
54+
Compute the correlated colour temperature :math:`T_{cp}` of a
5555
*CIE Illuminant D Series* from its *CIE xy* chromaticity coordinates.
5656
5757
Parameters
@@ -122,7 +122,7 @@ def objective_function(CCT: NDArrayFloat, xy: NDArrayFloat) -> DTypeFloat:
122122

123123
def CCT_to_xy_CIE_D(CCT: ArrayLike) -> NDArrayFloat:
124124
"""
125-
Return the *CIE xy* chromaticity coordinates of a
125+
Compute the *CIE xy* chromaticity coordinates of a
126126
*CIE Illuminant D Series* from its correlated colour temperature
127127
:math:`T_{cp}`.
128128

colour/temperature/hernandez1999.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
:math:`T_{cp}` computations objects:
77
88
- :func:`colour.temperature.xy_to_CCT_Hernandez1999`: Correlated colour
9-
temperature :math:`T_{cp}` computation of given *CIE xy* chromaticity
9+
temperature :math:`T_{cp}` computation of specified *CIE xy* chromaticity
1010
coordinates using *Hernandez-Andres, Lee and Romero (1999)* method.
1111
- :func:`colour.temperature.CCT_to_xy_Hernandez1999`: *CIE xy* chromaticity
12-
coordinates computation of given correlated colour temperature
12+
coordinates computation of specified correlated colour temperature
1313
:math:`T_{cp}` using *Hernandez-Andres, Lee and Romero (1999)* method.
1414
1515
References
@@ -50,7 +50,7 @@
5050

5151
def xy_to_CCT_Hernandez1999(xy: ArrayLike) -> NDArrayFloat:
5252
"""
53-
Return the correlated colour temperature :math:`T_{cp}` from given
53+
Compute the correlated colour temperature :math:`T_{cp}` from specified
5454
*CIE xy* chromaticity coordinates using *Hernandez-Andres et al. (1999)*
5555
method.
5656
@@ -104,7 +104,7 @@ def CCT_to_xy_Hernandez1999(
104104
CCT: ArrayLike, optimisation_kwargs: dict | None = None
105105
) -> NDArrayFloat:
106106
"""
107-
Return the *CIE xy* chromaticity coordinates from given correlated colour
107+
Compute the *CIE xy* chromaticity coordinates from specified correlated colour
108108
temperature :math:`T_{cp}` using *Hernandez-Andres et al. (1999)* method.
109109
110110
Parameters

colour/temperature/kang2002.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def xy_to_CCT_Kang2002(
4848
xy: ArrayLike, optimisation_kwargs: dict | None = None
4949
) -> NDArrayFloat:
5050
"""
51-
Return the correlated colour temperature :math:`T_{cp}` from given
51+
Compute the correlated colour temperature :math:`T_{cp}` from specified
5252
*CIE xy* chromaticity coordinates using *Kang et al. (2002)* method.
5353
5454
Parameters
@@ -119,7 +119,7 @@ def objective_function(CCT: NDArrayFloat, xy: NDArrayFloat) -> DTypeFloat:
119119

120120
def CCT_to_xy_Kang2002(CCT: ArrayLike) -> NDArrayFloat:
121121
"""
122-
Return the *CIE xy* chromaticity coordinates from given correlated colour
122+
Compute the *CIE xy* chromaticity coordinates from specified correlated colour
123123
temperature :math:`T_{cp}` using *Kang et al. (2002)* method.
124124
125125
Parameters

colour/temperature/krystek1985.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def uv_to_CCT_Krystek1985(
4848
uv: ArrayLike, optimisation_kwargs: dict | None = None
4949
) -> NDArrayFloat:
5050
"""
51-
Return the correlated colour temperature :math:`T_{cp}` from given
51+
Compute the correlated colour temperature :math:`T_{cp}` from specified
5252
*CIE UCS* colourspace *uv* chromaticity coordinates using *Krystek (1985)*
5353
method.
5454
@@ -125,7 +125,7 @@ def objective_function(CCT: NDArrayFloat, uv: NDArrayFloat) -> DTypeFloat:
125125

126126
def CCT_to_uv_Krystek1985(CCT: ArrayLike) -> NDArrayFloat:
127127
"""
128-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
128+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
129129
correlated colour temperature :math:`T_{cp}` using *Krystek (1985)* method.
130130
131131
Parameters

colour/temperature/mccamy1992.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
def xy_to_CCT_McCamy1992(xy: ArrayLike) -> NDArrayFloat:
5050
"""
51-
Return the correlated colour temperature :math:`T_{cp}` from given
51+
Compute the correlated colour temperature :math:`T_{cp}` from specified
5252
*CIE xy* chromaticity coordinates using *McCamy (1992)* method.
5353
5454
Parameters
@@ -87,7 +87,7 @@ def CCT_to_xy_McCamy1992(
8787
CCT: ArrayLike, optimisation_kwargs: dict | None = None
8888
) -> NDArrayFloat:
8989
"""
90-
Return the *CIE xy* chromaticity coordinates from given correlated colour
90+
Compute the *CIE xy* chromaticity coordinates from specified correlated colour
9191
temperature :math:`T_{cp}` using *McCamy (1992)* method.
9292
9393
Parameters

colour/temperature/ohno2013.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def planckian_table(
7878
spacing: float,
7979
) -> NDArrayFloat:
8080
"""
81-
Return a planckian table from given *CIE UCS* colourspace *uv*
81+
Generate a planckian table from specified *CIE UCS* colourspace *uv*
8282
chromaticity coordinates, colour matching functions and temperature range
8383
using *Ohno (2013)* method.
8484
@@ -153,8 +153,8 @@ def uv_to_CCT_Ohno2013(
153153
spacing: float | None = None,
154154
) -> NDArrayFloat:
155155
"""
156-
Return the correlated colour temperature :math:`T_{cp}` and
157-
:math:`\\Delta_{uv}` from given *CIE UCS* colourspace *uv* chromaticity
156+
Compute the correlated colour temperature :math:`T_{cp}` and
157+
:math:`\\Delta_{uv}` from specified *CIE UCS* colourspace *uv* chromaticity
158158
coordinates, colour matching functions and temperature range using
159159
*Ohno (2013)* method.
160160
@@ -279,7 +279,7 @@ def CCT_to_uv_Ohno2013(
279279
CCT_D_uv: ArrayLike, cmfs: MultiSpectralDistributions | None = None
280280
) -> NDArrayFloat:
281281
"""
282-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
282+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
283283
correlated colour temperature :math:`T_{cp}`, :math:`\\Delta_{uv}` and
284284
colour matching functions using *Ohno (2013)* method.
285285
@@ -345,8 +345,8 @@ def XYZ_to_CCT_Ohno2013(
345345
spacing: float | None = None,
346346
) -> NDArrayFloat:
347347
"""
348-
Return the correlated colour temperature :math:`T_{cp}` and
349-
:math:`\\Delta_{uv}` from given *CIE XYZ* tristimulus values, colour
348+
Compute the correlated colour temperature :math:`T_{cp}` and
349+
:math:`\\Delta_{uv}` from specified *CIE XYZ* tristimulus values, colour
350350
matching functions and temperature range using *Ohno (2013)* method.
351351
352352
Parameters
@@ -396,7 +396,7 @@ def CCT_to_XYZ_Ohno2013(
396396
CCT_D_uv: ArrayLike, cmfs: MultiSpectralDistributions | None = None
397397
) -> NDArrayFloat:
398398
"""
399-
Return the *CIE XYZ* tristimulus values from given correlated colour
399+
Compute the *CIE XYZ* tristimulus values from specified correlated colour
400400
temperature :math:`T_{cp}`, :math:`\\Delta_{uv}` and colour matching
401401
functions using *Ohno (2013)* method.
402402

colour/temperature/planck1900.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def uv_to_CCT_Planck1900(
5454
optimisation_kwargs: dict | None = None,
5555
) -> NDArrayFloat:
5656
"""
57-
Return the correlated colour temperature :math:`T_{cp}` of a blackbody from
58-
given *CIE UCS* colourspace *uv* chromaticity coordinates and colour
57+
Compute the correlated colour temperature :math:`T_{cp}` of a blackbody from
58+
specified *CIE UCS* colourspace *uv* chromaticity coordinates and colour
5959
matching functions.
6060
6161
Parameters
@@ -131,9 +131,9 @@ def CCT_to_uv_Planck1900(
131131
CCT: ArrayLike, cmfs: MultiSpectralDistributions | None = None
132132
) -> NDArrayFloat:
133133
"""
134-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
134+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
135135
correlated colour temperature :math:`T_{cp}` and colour matching functions
136-
using the spectral radiance of a blackbody at the given thermodynamic
136+
using the spectral radiance of a blackbody at the specified thermodynamic
137137
temperature.
138138
139139
Parameters

colour/temperature/robertson1968.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class ISOTemperatureLine_Specification_Robertson1968:
154154

155155
def mired_to_CCT(mired: ArrayLike) -> NDArrayFloat:
156156
"""
157-
Convert given micro reciprocal degree to correlated colour temperature
157+
Convert specified micro reciprocal degree to correlated colour temperature
158158
:math:`T_{cp}`.
159159
160160
Parameters
@@ -181,7 +181,7 @@ def mired_to_CCT(mired: ArrayLike) -> NDArrayFloat:
181181

182182
def CCT_to_mired(CCT: ArrayLike) -> NDArrayFloat:
183183
"""
184-
Convert given correlated colour temperature :math:`T_{cp}` to micro
184+
Convert specified correlated colour temperature :math:`T_{cp}` to micro
185185
reciprocal degree (mired).
186186
187187
Parameters
@@ -208,8 +208,8 @@ def CCT_to_mired(CCT: ArrayLike) -> NDArrayFloat:
208208

209209
def _uv_to_CCT_Robertson1968(uv: ArrayLike) -> NDArrayFloat:
210210
"""
211-
Return the correlated colour temperature :math:`T_{cp}` and
212-
:math:`\\Delta_{uv}` from given *CIE UCS* colourspace *uv* chromaticity
211+
Compute the correlated colour temperature :math:`T_{cp}` and
212+
:math:`\\Delta_{uv}` from specified *CIE UCS* colourspace *uv* chromaticity
213213
coordinates using *Roberston (1968)* method.
214214
215215
Parameters
@@ -276,8 +276,8 @@ def _uv_to_CCT_Robertson1968(uv: ArrayLike) -> NDArrayFloat:
276276

277277
def uv_to_CCT_Robertson1968(uv: ArrayLike) -> NDArrayFloat:
278278
"""
279-
Return the correlated colour temperature :math:`T_{cp}` and
280-
:math:`\\Delta_{uv}` from given *CIE UCS* colourspace *uv* chromaticity
279+
Compute the correlated colour temperature :math:`T_{cp}` and
280+
:math:`\\Delta_{uv}` from specified *CIE UCS* colourspace *uv* chromaticity
281281
coordinates using *Roberston (1968)* method.
282282
283283
Parameters
@@ -310,7 +310,7 @@ def uv_to_CCT_Robertson1968(uv: ArrayLike) -> NDArrayFloat:
310310

311311
def _CCT_to_uv_Robertson1968(CCT_D_uv: ArrayLike) -> NDArrayFloat:
312312
"""
313-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
313+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
314314
correlated colour temperature :math:`T_{cp}` and :math:`\\Delta_{uv}` using
315315
*Roberston (1968)* method.
316316
@@ -370,7 +370,7 @@ def _CCT_to_uv_Robertson1968(CCT_D_uv: ArrayLike) -> NDArrayFloat:
370370

371371
def CCT_to_uv_Robertson1968(CCT_D_uv: ArrayLike) -> NDArrayFloat:
372372
"""
373-
Return the *CIE UCS* colourspace *uv* chromaticity coordinates from given
373+
Compute the *CIE UCS* colourspace *uv* chromaticity coordinates from specified
374374
correlated colour temperature :math:`T_{cp}` and :math:`\\Delta_{uv}` using
375375
*Roberston (1968)* method.
376376

0 commit comments

Comments
 (0)