File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ Creating a PMOD-compatible header is just as easy::
52
52
>> nim.header.extensions.append(dcmext)
53
53
>> nib.save(nim,' pet_withdcm.nii' )
54
54
55
+ Be careful! Many imaging tools don' t maintain information in the extended
56
+ header, so it' s possible [likely] that this information may be lost during
57
+ routine use. You' ll have to keep track, and re-write the information if
58
+ required.
59
+
55
60
.. _`NIfTI Extensions Standard` : http:// nifti.nimh.nih.gov/ nifti- 1 / documentation/ nifti1fields/ nifti1fields_pages/ extension.html
56
61
57
62
.. include:: links_names.txt
Original file line number Diff line number Diff line change @@ -412,25 +412,25 @@ def _guess_implicit_VR(self):
412
412
valid VRs"""
413
413
potential_vr = self ._raw_content [4 :6 ].decode ()
414
414
if potential_vr in dicom_converters .keys ():
415
- implicit_VR = False
415
+ implicit_VR = False
416
416
else :
417
- implicit_VR = True
417
+ implicit_VR = True
418
418
return implicit_VR
419
419
420
420
def _guess_little_endian (self ):
421
421
return True
422
422
423
- def _unmangle (self ,value ):
424
- bio = BytesIO (value )
425
- ds = read_dataset (bio ,self ._is_implicit_VR ,self ._is_little_endian )
423
+ def _unmangle (self , value ):
424
+ bio = BytesIO (value )
425
+ ds = read_dataset (bio , self ._is_implicit_VR , self ._is_little_endian )
426
426
return ds
427
427
428
428
def _mangle (self , dataset ):
429
- bio = BytesIO ()
430
- dio = DicomFileLike (bio )
429
+ bio = BytesIO ()
430
+ dio = DicomFileLike (bio )
431
431
dio .is_implicit_VR = self ._is_implicit_VR
432
432
dio .is_little_endian = self ._is_little_endian
433
- ds_len = write_dataset (dio ,dataset )
433
+ ds_len = write_dataset (dio , dataset )
434
434
dio .seek (0 )
435
435
return dio .read (ds_len )
436
436
You can’t perform that action at this time.
0 commit comments