colour_clf_io.ASC_CDL#

class colour_clf_io.ASC_CDL(id: str | None, name: str | None, in_bit_depth: BitDepth, out_bit_depth: BitDepth, description: list[str] | None, style: ASC_CDLStyle, sopnode: SOPNode | None, sat_node: SatNode | None)[source]#

Bases: ProcessNode

Represent an ASC_CDL element.

References

Parameters:
__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: ASC_CDLStyle, sopnode: SOPNode | None, sat_node: SatNode | None) None#
Parameters:
Return type:

None

__repr__()#

Return repr(self).

static from_xml(xml: _Element | None, config: ParserConfig) ASC_CDL | None[source]#

Parse and return a colour_clf_io.ASC_CDL class instance from the given XML element. Returns None` if the given XML element is None.

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.ASC_CDL or None

Raises:

colour_clf_io.errors.ParsingError – If the node does not conform to the specification, a ParsingError exception will be raised. The error message will indicate the details of the issue that was encountered.

to_xml() _Element[source]#

Serialise this object as an XML object.

Return type:

lxml.etree._Element