colour.WEIGHTS_YCBCR

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

Implement a case-insensitive dict-like object.

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

Parameters
  • data – Data to store into the case-insensitive dict-like object at initialisation.

  • kwargs – Key / value pairs to store into the mapping at initialisation.

Attributes

Methods

References

[Rei]

Examples

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