pydicom.valuerep.is_valid_ds

pydicom.valuerep.is_valid_ds(s: str) bool[source]

Check whether this string is a valid decimal string.

Valid decimal strings must be 16 characters or fewer, and contain only characters from a limited set.

Parameters:

s (str) – String to test.

Returns:

True if the string is a valid decimal string. Otherwise False.

Return type:

bool