![]() |
IDS peak ICV v1.1.0
|

Public Member Functions | |
| str | string_value (self) |
| Return the string_value for this metadata key. | |
| Type[Any] | type (self) |
| Return the expected Python type for this metadata key. | |
| str | __str__ (self) |
| Return a human-readable string of the MetadataKey object. | |
| str | __repr__ (self) |
| Return an unambiguous string of the MetadataKey object. | |
Static Public Attributes | |
| DEVICE_TIMESTAMP = _MetadataKeyInfo("DeviceTimestamp", int) | |
| DEVICE_FRAME_ID = _MetadataKeyInfo("DeviceFrameID", int) | |
| BINNING_HORIZONTAL = _MetadataKeyInfo("BinningHorizontal", int) | |
| BINNING_VERTICAL = _MetadataKeyInfo("BinningVertical", int) | |
| ROI = _MetadataKeyInfo("Roi", Rectangle) | |
Enumerates all compile-time known metadata keys.
Each enum value carries both:
This makes it easy to use type-safe keys without an extra trait class.
Example::
key = MetadataKey.DEVICE_TIMESTAMP print(key.string_value) # outputs: device_timestamp print(key.type) # outputs: <class 'int'>
Definition at line 14 of file metadata_key.py.
| str __repr__ | ( | self | ) |
Return an unambiguous string of the MetadataKey object.
Definition at line 103 of file metadata_key.py.
| str __str__ | ( | self | ) |
Return a human-readable string of the MetadataKey object.
Definition at line 96 of file metadata_key.py.
| str string_value | ( | self | ) |
Return the string_value for this metadata key.
Definition at line 85 of file metadata_key.py.
| Type[Any] type | ( | self | ) |
Return the expected Python type for this metadata key.
Definition at line 91 of file metadata_key.py.
|
static |
Definition at line 58 of file metadata_key.py.
|
static |
Definition at line 66 of file metadata_key.py.
|
static |
Definition at line 46 of file metadata_key.py.
|
static |
Definition at line 34 of file metadata_key.py.
|
static |
Definition at line 74 of file metadata_key.py.