colour.WEIGHTS_YCBCR

colour.WEIGHTS_YCBCR = CaseInsensitiveMapping({'ITU-R BT.601': ..., 'ITU-R BT.709': ..., 'ITU-R BT.2020': ..., 'SMPTE-240M': ...})

Implements a case-insensitive mutable mapping / dict object.

Allows values retrieving from keys while ignoring the key case. The keys are expected to be str or string-like objects supporting the str.lower() method.

Parameters
  • data (dict) – dict of data to store into the mapping at initialisation.

  • **kwargs (dict, optional) – Key / Value pairs to store into the mapping at initialisation.

Attributes

Methods

Warning

The keys are expected to be str or string-like objects.

References

[Rei]

Examples

>>> methods = CaseInsensitiveMapping({'McCamy': 1, 'Hernandez': 2})
>>> methods['mccamy']
1