CameraModel.to_elem

CameraModel.to_elem(elem, **kwargs)[source]

Stores this camera model in an lxml.etree.SubElement object for storing in a GIANT xml file

This method operates by looping through the attributes in important_attributes, retrieving the value of these attributes in self, and then storing them as a sub-element to elem. If the attribute already exists as a sub-element to elem then it is overwritten.

The user generally will not use this method and instead will use the module level save() function.

Parameters

elem (lxml.etree._Element) – The lxml.etree.SubElement class to store this camera model in

Returns

The lxml.etree.SubElement for this model

Return type

lxml.etree._Element