Skip to content

Commit

Permalink
Add force=True
Browse files Browse the repository at this point in the history
  • Loading branch information
astewartau committed Jan 21, 2025
1 parent da8600b commit 4b81b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dicompare/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def load_dicom(dicom_file: Union[str, bytes]) -> Dict[str, Any]:
if isinstance(dicom_file, (bytes, memoryview)):
ds = pydicom.dcmread(BytesIO(dicom_file), stop_before_pixels=False, force=True, defer_size=len(dicom_file))
else:
ds = pydicom.dcmread(dicom_file, stop_before_pixels=True)
ds = pydicom.dcmread(dicom_file, stop_before_pixels=True, force=True)

return get_dicom_values(ds)

Expand Down

0 comments on commit 4b81b68

Please sign in to comment.