pydicom.config.DS_decimal¶
- pydicom.config.DS_decimal(use_Decimal_boolean: bool = True) None [source]¶
Set DS class to be derived from
decimal.Decimal
orfloat
.If this function is never called, the default in pydicom >= 0.9.8 is for DS to be based on
float
.- Parameters:
use_Decimal_boolean (bool, optional) –
True
(default) to deriveDS
fromdecimal.Decimal
,False
to derive it fromfloat
.- Raises:
ValueError – If use_Decimal_boolean and
use_DS_numpy
are bothTrue
.