pydicom.valuerep.DS¶
-
pydicom.valuerep.
DS
(val)¶ Factory function for creating DS class instances.
Checks for blank string; if so, returns that, else calls
DSfloat
orDSdecimal
to create the class instance. This avoids overridingDSfloat.__new__()
(which carries a time penalty for large arrays of DS).Similarly the string clean and check can be avoided and
DSfloat
called directly if a string has already been processed.