Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"requests>=2.18",
"retrying>=1.3.3",
"Pillow>=8.3",
"pydicom>=2.2",
"pydicom>=3.0.0",
"typing-extensions>=4.0; python_version < '3.8.0'",
]

Expand Down
4 changes: 2 additions & 2 deletions src/dicomweb_client/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from pydicom.datadict import dictionary_VR, keyword_for_tag, tag_for_keyword
from pydicom.dataelem import DataElement
from pydicom.dataset import Dataset, FileMetaDataset
from pydicom.encaps import encapsulate, get_frame_offsets
from pydicom.encaps import encapsulate, parse_basic_offsets
from pydicom.errors import InvalidDicomError
from pydicom.filebase import DicomFileLike
from pydicom.filereader import data_element_offset_to_value, dcmread
Expand Down Expand Up @@ -350,7 +350,7 @@ def _read_bot(fp: DicomFileLike) -> np.ndarray:
fp.is_implicit_VR, 'OB'
)
fp.seek(pixel_data_element_value_offset - 4, 1)
is_empty, offsets = get_frame_offsets(fp)
offsets = parse_basic_offsets(fp)
return np.array(offsets, dtype=np.uint32)


Expand Down
Loading