Skip to content

Commit a17e233

Browse files
committed
Update docstrings in colour.volume package.
1 parent c557979 commit a17e233

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

colour/volume/datasets/optimal_colour_stimuli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Optimal Colour Stimuli
33
======================
44
5-
Define the *MacAdam Optimal Colour Stimuli* for various illuminants in
5+
*MacAdam Optimal Colour Stimuli* for various illuminants in
66
*CIE xyY* colourspace.
77
88
The *Optimal Colour Stimuli* data is in the form of a *dict* of

colour/volume/macadam_limits.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Optimal Colour Stimuli - MacAdam Limits
33
=======================================
44
5-
Define the objects related to *Optimal Colour Stimuli* computations.
5+
Objects related to *Optimal Colour Stimuli* computations.
66
"""
77

88
from __future__ import annotations
@@ -45,7 +45,7 @@ def _XYZ_optimal_colour_stimuli(
4545
illuminant: Literal["A", "C", "D65"] | str = "D65",
4646
) -> NDArrayFloat:
4747
"""
48-
Return given illuminant *Optimal Colour Stimuli* in *CIE XYZ* tristimulus
48+
Return specified illuminant *Optimal Colour Stimuli* in *CIE XYZ* tristimulus
4949
values and caches it if not existing.
5050
5151
Parameters
@@ -85,8 +85,8 @@ def is_within_macadam_limits(
8585
tolerance: float = 100 * EPSILON,
8686
) -> NDArrayFloat:
8787
"""
88-
Return whether given *CIE xyY* colourspace array is within MacAdam limits
89-
of given illuminant.
88+
Return whether specified *CIE xyY* colourspace array is within MacAdam limits
89+
of specified illuminant.
9090
9191
Parameters
9292
----------
@@ -100,7 +100,7 @@ def is_within_macadam_limits(
100100
Returns
101101
-------
102102
:class:`numpy.ndarray`
103-
Whether given *CIE xyY* colourspace array is within MacAdam limits.
103+
Whether specified *CIE xyY* colourspace array is within MacAdam limits.
104104
105105
Notes
106106
-----

colour/volume/mesh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Mesh Volume Computation Helpers
33
===============================
44
5-
Define the helpers objects related to volume computations.
5+
Helper objects related to volume computations.
66
"""
77

88
from __future__ import annotations
@@ -34,7 +34,7 @@ def is_within_mesh_volume(
3434
points: ArrayLike, mesh: ArrayLike, tolerance: float = 100 * EPSILON
3535
) -> NDArrayFloat:
3636
"""
37-
Return whether given points are within given mesh volume using Delaunay
37+
Return whether specified points are within specified mesh volume using Delaunay
3838
triangulation.
3939
4040
Parameters
@@ -49,7 +49,7 @@ def is_within_mesh_volume(
4949
Returns
5050
-------
5151
:class:`numpy.ndarray`
52-
Whether given points are within given mesh volume.
52+
Whether specified points are within specified mesh volume.
5353
5454
Examples
5555
--------

colour/volume/pointer_gamut.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pointer's Gamut Volume Computations
33
===================================
44
5-
Define the objects related to *Pointer's Gamut* volume computations.
5+
Objects related to *Pointer's Gamut* volume computations.
66
"""
77

88
from __future__ import annotations
@@ -38,7 +38,7 @@ def is_within_pointer_gamut(
3838
XYZ: ArrayLike, tolerance: float = 100 * EPSILON
3939
) -> NDArrayFloat:
4040
"""
41-
Return whether given *CIE XYZ* tristimulus values are within Pointer's
41+
Return whether specified *CIE XYZ* tristimulus values are within Pointer's
4242
Gamut volume.
4343
4444
Parameters
@@ -51,7 +51,7 @@ def is_within_pointer_gamut(
5151
Returns
5252
-------
5353
:class:`numpy.ndarray`
54-
Whether given *CIE XYZ* tristimulus values are within Pointer's Gamut
54+
Whether specified *CIE XYZ* tristimulus values are within Pointer's Gamut
5555
volume.
5656
5757
Notes

colour/volume/rgb.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
RGB Colourspace Volume Computation
33
==================================
44
5-
Define various RGB colourspace volume computation objects:
5+
Various RGB colourspace volume computation objects:
66
77
- :func:`colour.RGB_colourspace_limits`
88
- :func:`colour.RGB_colourspace_volume_MonteCarlo`
@@ -91,7 +91,7 @@ def sample_RGB_colourspace_volume_MonteCarlo(
9191
) -> int:
9292
"""
9393
Randomly sample the *CIE L\\*a\\*b\\** colourspace volume and returns the
94-
ratio of samples within the given *RGB* colourspace volume.
94+
ratio of samples within the specified *RGB* colourspace volume.
9595
9696
Parameters
9797
----------
@@ -152,7 +152,7 @@ def sample_RGB_colourspace_volume_MonteCarlo(
152152

153153
def RGB_colourspace_limits(colourspace: RGB_Colourspace) -> NDArrayFloat:
154154
"""
155-
Compute given *RGB* colourspace volume limits in *CIE L\\*a\\*b\\**
155+
Compute specified *RGB* colourspace volume limits in *CIE L\\*a\\*b\\**
156156
colourspace.
157157
158158
Parameters
@@ -167,7 +167,7 @@ def RGB_colourspace_limits(colourspace: RGB_Colourspace) -> NDArrayFloat:
167167
168168
Notes
169169
-----
170-
The limits are computed for the given *RGB* colourspace illuminant. This is
170+
The limits are computed for the specified *RGB* colourspace illuminant. This is
171171
important to account for, if the intent is to compare various *RGB*
172172
colourspaces together. In this instance, they must be chromatically adapted
173173
to the same illuminant before-hand.
@@ -212,7 +212,7 @@ def RGB_colourspace_volume_MonteCarlo(
212212
random_state: np.random.RandomState | None = None,
213213
) -> float:
214214
"""
215-
Perform given *RGB* colourspace volume computation using *Monte Carlo*
215+
Perform specified *RGB* colourspace volume computation using *Monte Carlo*
216216
method and multiprocessing.
217217
218218
Parameters
@@ -296,7 +296,7 @@ def RGB_colourspace_volume_coverage_MonteCarlo(
296296
random_state: np.random.RandomState | None = None,
297297
) -> float:
298298
"""
299-
Return given *RGB* colourspace percentage coverage of an arbitrary volume.
299+
Return specified *RGB* colourspace percentage coverage of an arbitrary volume.
300300
301301
Parameters
302302
----------
@@ -347,7 +347,7 @@ def RGB_colourspace_pointer_gamut_coverage_MonteCarlo(
347347
random_state: np.random.RandomState | None = None,
348348
) -> float:
349349
"""
350-
Return given *RGB* colourspace percentage coverage of Pointer's Gamut
350+
Return specified *RGB* colourspace percentage coverage of Pointer's Gamut
351351
volume using *Monte Carlo* method.
352352
353353
Parameters
@@ -393,7 +393,7 @@ def RGB_colourspace_visible_spectrum_coverage_MonteCarlo(
393393
random_state: np.random.RandomState | None = None,
394394
) -> float:
395395
"""
396-
Return given *RGB* colourspace percentage coverage of visible spectrum
396+
Return specified *RGB* colourspace percentage coverage of visible spectrum
397397
volume using *Monte Carlo* method.
398398
399399
Parameters

colour/volume/spectrum.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Rösch-MacAdam colour solid - Visible Spectrum Volume Computations
33
=================================================================
44
5-
Define the objects related to *Rösch-MacAdam* colour solid, visible spectrum
5+
Objects related to *Rösch-MacAdam* colour solid, visible spectrum
66
volume computations.
77
88
References
@@ -82,7 +82,7 @@ def generate_pulse_waves(
8282
filter_jagged_pulses: bool = False,
8383
) -> NDArrayFloat:
8484
"""
85-
Generate the pulse waves of given number of bins necessary to totally
85+
Generate the pulse waves of specified number of bins necessary to totally
8686
stimulate the colour matching functions and produce the *Rösch-MacAdam*
8787
colour solid.
8888
@@ -252,7 +252,7 @@ def XYZ_outer_surface(
252252
) -> NDArrayFloat:
253253
"""
254254
Generate the *Rösch-MacAdam* colour solid, i.e., *CIE XYZ* colourspace
255-
outer surface, for given colour matching functions using multi-spectral
255+
outer surface, for specified colour matching functions using multi-spectral
256256
conversion of pulse waves to *CIE XYZ* tristimulus values.
257257
258258
Parameters
@@ -391,8 +391,8 @@ def is_within_visible_spectrum(
391391
**kwargs: Any,
392392
) -> NDArrayFloat:
393393
"""
394-
Return whether given *CIE XYZ* tristimulus values are within the visible
395-
spectrum volume, i.e., *Rösch-MacAdam* colour solid, for given colour
394+
Return whether specified *CIE XYZ* tristimulus values are within the visible
395+
spectrum volume, i.e., *Rösch-MacAdam* colour solid, for specified colour
396396
matching functions and illuminant.
397397
398398
Parameters

0 commit comments

Comments
 (0)