DigitalReport¤
DigitalReport
dataclass
¤
DigitalReport(
url: str,
format: DigitalFormat,
id: str,
sha256: str,
attributes: dict[str, str] = dict(),
comment: str = "",
)
Represents the digitalReport element in an equipment register.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The location of the digital report. The syntax follows RFC 1738
|
required |
format
|
DigitalFormat
|
The format of the digital calibration report. |
required |
id
|
str
|
The report identification number. |
required |
sha256
|
str
|
The SHA-256 checksum of the digital report. |
required |
attributes
|
dict[str, str]
|
XML attributes associated with the |
dict()
|
comment
|
str
|
A comment to associate with the digital report. |
''
|
attributes
class-attribute
instance-attribute
¤
XML attributes associated with the <url> element.
comment
class-attribute
instance-attribute
¤
comment: str = ''
A comment associated with the digital report.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> DigitalReport
Convert an XML element into a DigitalReport instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
Element[str]
|
A digitalReport XML element from an equipment register. |
required |
Returns:
| Type | Description |
|---|---|
DigitalReport
|
The DigitalReport instance. |
Source code in src/msl/equipment/schema.py
1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 | |
to_xml
¤
Convert the DigitalReport class into an XML element.
Returns:
| Type | Description |
|---|---|
Element[str]
|
The DigitalReport as an XML element. |
Source code in src/msl/equipment/schema.py
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 | |
DigitalFormat
(Enum)
¤
Represents the digitalFormatEnumerationString enumeration in an equipment register.
Attributes:
| Name | Type | Description |
|---|---|---|
MSL_PDF |
str
|
|
PTB_DCC |
str
|
|