pydicom.filereader.read_partial¶
-
pydicom.filereader.read_partial(fileobj, stop_when=None, defer_size=None, force=False, specific_tags=None)[source]¶ Parse a DICOM file until a condition is met.
- Parameters
Notes
Use
dcmread()unless you need to stop on some condition other than reaching pixel data.- Returns
The read dataset.
- Return type
See also
dcmreadMore generic file reading function.