SplitCamera.from_elem¶
giant.camera_models.split_camera
:
- classmethod SplitCamera.from_elem(elem)[source]¶
Construct a new instance of SplitCamera from an
etree._Element
object.This class method extends the base
CameraModel.from_elem()
method to handle the reconstruction of both component models (model1 and model2) from the XML structure. It retrieves the necessary information for each component model, imports the appropriate classes, and initializes them using their respectivefrom_elem()
methods.- Parameters:
elem (_Element) – The element containing the attribute information for the instance to be created
- Returns:
An initialized instance of SplitCamera with both component models properly set
- Raises:
KeyError – If the required nodes for model1 or model2 are missing in the XML element
- Return type: