[help]What is the solution for handle missing 'Transfer Syntax UID' after v3.0 droped fix_meta_info()? #2183
Cherrymelon
started this conversation in
General
Replies: 1 comment
-
You should set the correct transfer syntax in the dataset's from pydicom import dcmread
from pydicom.uid import ExplicitVRLittleEndian # or whatever the actual transfer syntax is
ds = dcmread(...)
ds.file_meta.TransferSyntaxUID = ExplicitVRLittleEndian # or whatever the actual transfer syntax is Also, going off the warning it looks like the dataset's SOP Class UID is using a text description rather than the actual UID... from pydicom.uid import SecondaryCaptureImageStorage
# This
ds.SOPClassUID = SecondaryCaptureImageStorage
# Or this
ds.SOPClassUID = "1.2.840.10008.5.1.4.1.1.7"
# Not this
ds.SOPClassUID = "Secondary Capture Image Storage" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found some dicom will raise missing 'Transfer Syntax UID' when I read dicom.pixel_array.
I have to downgrade pydicom to v2.4,but if I want to use v3.0 what should I do? copy fix_meta_info method as local code?
Beta Was this translation helpful? Give feedback.
All reactions