> 836 return object.This document is a basic reference for MeVisLab related DICOM ( Digital Imaging and Communications in Medicine) functionality. > 127 records = self.DirectoryRecordSequenceĬ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\dataset.py in _getattr_(self, name)Ĩ35 # Try the base class attribute getter (fix for issue 332) Is there a way for me to read in this file in Python or alternatively force it to ignore looking for DirectoryRecordSequence?Ĭode and stacktrace from using FileSet: from pydicom.fileset import FileSetĪttributeError Traceback (most recent call last)Ĭ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\fileset.py in _init_(self, ds)ĩ98 # Check the DICOMDIR dataset and create the record treeĬ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\fileset.py in load(self, ds_or_path, include_orphans, raise_orphans)ġ645 sop_class = ds.file_meta.get("MediaStorageSOPClassUID", None)Ĭ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\filereader.py in dcmread(fp, defer_size, stop_before_pixels, force, specific_tags)Ĭ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\filereader.py in read_partial(fileobj, stop_when, defer_size, force, specific_tags)Ĭ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\dicomdir.py in _init_(self, filename_or_obj, dataset, preamble, file_meta, is_implicit_VR, is_little_endian)ĩ5 self.patient_records: List = Ĭ:\****\appdata\local\programs\python\python38-32\lib\site-packages\pydicom\dicomdir.py in parse_records(self)ġ26 # Build the mapping from file offsets to records I can open the file in ImageJ and view header information there so I know the data is recoverable. Moreover, the image is supposed to be a regular DICOM file, not a DICOMDIR. (0002, 0010) Transfer Syntax UID UI: Explicit VR Little Endian (0002, 0002) Media Storage SOP Class UID UI: Media Storage Directory Storage _file_meta_info is about the only thing that's not returned an error and yields (0002, 0000) File Meta Information Group Length UL: 172 I'm unable to read in a DICOM file as I usually would, citing the error: AttributeError: 'DicomDir' object has no attribute 'DirectoryRecordSequence'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |