SplitCamera.to_elem

giant.camera_models.split_camera:

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

Store this camera model in an lxml.etree.SubElement object for saving in a GIANT xml file.

This method extends the base CameraModel.to_elem() method to include both component models (model1 and model2) in the XML structure. It creates separate subelements for each component model and stores their attributes using their respective to_elem() methods.

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

  • kwargs – Additional keyword arguments to pass to the component models’ to_elem() methods

Returns:

The lxml.etree.SubElement for this model

Return type:

_Element