-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dump_dcm_info gives error #77
Labels
Comments
Thanks - this was a regression that is already fixed in main. I will probably make a new patch release. |
Fixed with new release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installed dicom-validator-0.4.1 lxml-5.1.0 pydicom-2.4.4
validate_iods works fine, thanks!
Tried dump_dcm_info on several Dicom images, always get the following error:
Using DICOM revision 2024a
/mnt/c/Images//CT.Image1.dcm
Traceback (most recent call last):
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 28, in tag_in_exception
yield
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2474, in walk
callback(self, data_element) # self = this Dataset
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 48, in
lambda data_set, data_elem: self.print_dataelement(data_set, data_elem)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 74, in print_dataelement
description = self.dict_info.get(tag_id)
AttributeError: 'DataElementDumper' object has no attribute 'dict_info'. Did you mean: 'dicom_info'?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/yg/.local/bin/dump_dcm_info", line 8, in
sys.exit(main())
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 196, in main
dumper.dump_file(dicom_path)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 118, in dump_file
self.print_dataset(dataset)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 47, in print_dataset
dataset.walk(
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2472, in walk
with tag_in_exception(tag):
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 32, in tag_in_exception
raise type(exc)(msg) from exc
AttributeError: With tag (0008, 0005) got exception: 'DataElementDumper' object has no attribute 'dict_info'
Traceback (most recent call last):
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 28, in tag_in_exception
yield
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2474, in walk
callback(self, data_element) # self = this Dataset
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 48, in
lambda data_set, data_elem: self.print_dataelement(data_set, data_elem)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 74, in print_dataelement
description = self.dict_info.get(tag_id)
AttributeError: 'DataElementDumper' object has no attribute 'dict_info'
The text was updated successfully, but these errors were encountered: