pydicom.config.DS_decimal¶
-
pydicom.config.DS_decimal(use_Decimal_boolean=True)[source]¶ Set DS class to be derived from
decimal.Decimalorfloat.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 deriveDSfromdecimal.Decimal,Falseto derive it fromfloat.- Raises
ValueError – If use_Decimal_boolean and
use_DS_numpyare bothTrue.