pydicom.values.convert_DS_string¶
-
pydicom.values.convert_DS_string(byte_string, is_little_endian, struct_format=None)¶ Return a decoded ‘DS’ value.
Parameters: - byte_string (bytes or str) – The encoded ‘DS’ element value.
- is_little_endian (bool) –
Trueif the value is encoded as little endian,Falseotherwise. - struct_format (str, optional) – Not used.
Returns: If
use_DS_decimalisTruethen returnsDSdecimalor alistofDSdecimal, otherwise returnsDSfloator alistofDSfloat.Return type: valuerep.DSfloat or valuerep.DSdecimal or list of DSfloat/DSdecimal