colour.YCBCR_WEIGHTS

colour.YCBCR_WEIGHTS = 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 unicode or string-like objects supporting the str.lower() method.

Parameters

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

Other Parameters

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

colour.__setitem__()
colour.__getitem__()
colour.__delitem__()
colour.__contains__()
colour.__iter__()
colour.__len__()
colour.__eq__()
colour.__ne__()
colour.__repr__()
colour.copy()
colour.lower_items()

Warning

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

References

[Rei]

Examples

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