SplitCamera.to_elem¶
giant.camera_models.split_camera:
- SplitCamera.to_elem(elem, **kwargs)[source]¶
Store this camera model in an
lxml.etree.SubElementobject 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 respectiveto_elem()methods.- Parameters:
elem (_Element) – The
lxml.etree.SubElementclass to store this camera model inkwargs – Additional keyword arguments to pass to the component models’
to_elem()methods
- Returns:
The
lxml.etree.SubElementfor this model- Return type:
_Element