@@ -425,8 +425,8 @@ def __init__(self, code, content, parent_hdr=None):
425
425
elif isinstance (content , bytes ): # Got a byte string - unmangle it
426
426
self ._raw_content = content
427
427
self ._is_implicit_VR = self ._guess_implicit_VR ()
428
- ds = self ._unmangle_and_verify (content , self ._is_implicit_VR ,
429
- self ._is_little_endian )
428
+ ds = self ._unmangle (content , self ._is_implicit_VR ,
429
+ self ._is_little_endian )
430
430
self ._content = ds
431
431
elif content == None : # Otherwise, initialize a new dicom dataset
432
432
self ._is_implicit_VR = False
@@ -435,14 +435,6 @@ def __init__(self, code, content, parent_hdr=None):
435
435
raise TypeError ("content must be either a bytestring or a pydicom "
436
436
"Dataset. Got %s" % content .__class__ )
437
437
438
- def _unmangle_and_verify (self , content , is_implicit_VR , is_little_endian ):
439
- """"Decode and verify dicom dataset"""
440
- ds = self ._unmangle (content , is_implicit_VR , is_little_endian )
441
- for elem in ds :
442
- if elem .VR not in pdcm .values .converters .keys ():
443
- raise StandardError # Ensure that all VRs are valid
444
- return ds
445
-
446
438
def _guess_implicit_VR (self ):
447
439
"""Try to guess DICOM syntax by checking for valid VRs.
448
440
0 commit comments