colour_clf_io.Info#

class colour_clf_io.Info(app_release: str | None, copyright: str | None, revision: str | None, aces_transform_id: str | None, aces_user_name: str | None, calibration_info: CalibrationInfo | None)[source]#

Bases: XMLParsable, XMLWritable

Represent an Info element.

Attributes

Methods

References

Parameters:
  • app_release (str | None)

  • copyright (str | None)

  • revision (str | None)

  • aces_transform_id (str | None)

  • aces_user_name (str | None)

  • calibration_info (CalibrationInfo | None)

app_release: str | None#

A string used for indicating application software release level.

copyright: str | None#

A string containing a copyright notice for authorship of the CLF file.

revision: str | None#

A string used to track the version of the LUT itself (e.g., an increased resolution from a previous version of the LUT).

aces_transform_id: str | None#

A string containing an ACES transform identifier as described in Academy S-2014-002. If the transform described by the ProcessList is the concatenation of several ACES transforms, this element may contain several ACES Transform IDs, separated by white space or line separators. This element is mandatory for ACES transforms and may be referenced from ACES Metadata Files.

aces_user_name: str | None#

A string containing the user-friendly name recommended for use in product user interfaces as described in Academy TB-2014-002.

calibration_info: CalibrationInfo | None#

Container element for calibration metadata used when making a LUT for a specific device.

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

Parse and return a colour_clf_io.Info 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.Info 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

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(app_release: str | None, copyright: str | None, revision: str | None, aces_transform_id: str | None, aces_user_name: str | None, calibration_info: CalibrationInfo | None) None#
Parameters:
  • app_release (str | None)

  • copyright (str | None)

  • revision (str | None)

  • aces_transform_id (str | None)

  • aces_user_name (str | None)

  • calibration_info (CalibrationInfo | None)

Return type:

None

__repr__()#

Return repr(self).