Skip to content

Adjustment¤

Adjustment dataclass ¤

Adjustment(details: str, date: date)

An adjustment of the equipment.

An example of an adjustment is cleaning the equipment (e.g., a spectral filter) and then performing another calibration measurement.

This XML element is found in component.

Parameters:

Name Type Description Default
details str

The details of the adjustment that was performed.

required
date date

The date that the adjustment was performed.

required

date instance-attribute ¤

date: date

The date that the adjustment was performed.

details instance-attribute ¤

details: str

The details of the adjustment that was performed.

from_xml classmethod ¤

from_xml(element: Element[str]) -> Adjustment

Convert an XML element into a Adjustment instance.

Parameters:

Name Type Description Default
element Element[str]

An <adjustment> XML element from an equipment register (see component).

required

Returns:

Type Description
Adjustment

The Adjustment instance.

to_xml ¤

to_xml() -> Element[str]

Convert the Adjustment class into an XML element.

Returns:

Type Description
Element[str]

The Adjustment as an XML element.