colour_clf_io.Exponent#
- class colour_clf_io.Exponent(id: str | None, name: str | None, in_bit_depth: BitDepth, out_bit_depth: BitDepth, description: list[str] | None, style: ExponentStyle, exponent_params: list[ExponentParams])[source]#
Bases:
ProcessNodeRepresent an Exponent element.
References
- Parameters:
id (str | None)
name (str | None)
in_bit_depth (BitDepth)
out_bit_depth (BitDepth)
style (ExponentStyle)
exponent_params (list[ExponentParams])
- static from_xml(xml: _Element | None, config: ParserConfig) Exponent | None[source]#
Parse and return a
colour_clf_io.Exponentclass instance from the given XML element. Returns None` if the given XML element isNone.Expects the XML element to be a valid element according to the CLF specification.
- Parameters:
xml (_Element | None) – XML element to parse.
config (ParserConfig) – XML parser config.
- Returns:
class – Parsed XML node.
- Return type:
colour_clf_io.Exponent or
None- Raises:
colour_clf_io.errors.ParsingError – If the node does not conform to the specification, a
ParsingErrorexception will be raised. The error message will indicate the details of the issue that was encountered.
- __eq__(other)#
Return self==value.
- __hash__ = None#
- __init__(id: str | None, name: str | None, in_bit_depth: BitDepth, out_bit_depth: BitDepth, description: list[str] | None, style: ExponentStyle, exponent_params: list[ExponentParams]) None#
- Parameters:
id (str | None)
name (str | None)
in_bit_depth (BitDepth)
out_bit_depth (BitDepth)
style (ExponentStyle)
exponent_params (list[ExponentParams])
- Return type:
None
- __repr__()#
Return repr(self).