-
Notifications
You must be signed in to change notification settings - Fork 11
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
BaseTag handling in IODValidator._tag_matches() #58
Labels
Comments
Thanks for the report and the PR! I will have a closer look tonight. |
mrbean-bremen
added a commit
to mrbean-bremen/dicom-validator
that referenced
this issue
Nov 7, 2023
* correctly parse the value index for some expressions * make the parsing stricter to avoid false positives * fix parsing of conditions for AT values with equality comparison (fixes pydicom#58)
mrbean-bremen
added a commit
to mrbean-bremen/dicom-validator
that referenced
this issue
Nov 8, 2023
* correctly parse the value index for some expressions * make the parsing stricter to avoid false positives * fix parsing of conditions for AT values with equality comparison (fixes pydicom#58)
mrbean-bremen
added a commit
to mrbean-bremen/dicom-validator
that referenced
this issue
Nov 8, 2023
* correctly parse the value index for some expressions * make the parsing stricter to avoid false positives * fix parsing of conditions for AT values with equality comparison (fixes pydicom#58)
mrbean-bremen
added a commit
to mrbean-bremen/dicom-validator
that referenced
this issue
Nov 9, 2023
* correctly parse the value index for some expressions * make the parsing stricter to avoid false positives * fix parsing of conditions for AT values with equality comparison (fixes pydicom#58)
mrbean-bremen
added a commit
that referenced
this issue
Nov 9, 2023
* Fix some issues in the condition parser * correctly parse the value index for some expressions * make the parsing stricter to avoid false positives * fix parsing of conditions for AT values with equality comparison (fixes #58)
I made a new patch release with the fix - please check! |
Excellent, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was working with a DICOM with SOP class "Multi-frame True Color Secondary Capture Image IOD" and when the code was hitting iod_validator.py:563, it was raising a ValueError.
For context, the condition dictionary being passed through is
condition = {'index': 0, 'op': '=', 'tag': '(0028,0009)', 'type': 'MN', 'values': ['Frame Time (0018,1063)', 'Frame Time Vector (0018,1065)']}
.type(tag_value)
is parsed as<class 'pydicom.tag.BaseTag'>
, but the values can't be coerced into a BaseTag.I put together a quick little bit of regex to change the str values into an int that is correctly parsed into a BaseTag and seems to then correctly finish validation, if this is helpful!
The text was updated successfully, but these errors were encountered: