pydicom.values.convert_tag¶
- pydicom.values.convert_tag(byte_string: bytes, is_little_endian: bool, offset: int = 0) BaseTag[source]¶
Return a decoded
BaseTagfrom the encoded byte_string. byte_string must be at least 4 bytes long.- Parameters:
- Returns:
The decoded tag.
- Return type:
- Raises:
ValueError – If byte_string is too short.