Skip to content
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

BUG: Fix ctkDICOMDatabase::fileValue for non-cached files #1227

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Mar 5, 2025

Recent 88ff72b commit changed ctkDICOMDatabase::fileValue behavior so that it no longer returns DICOM tag value for files that are not already in the database. This is an issue because this method has been used universally for any DICOM files (it returned result faster for files that are cached in the DICOM database but it worked for files not in the database, too).

This commit restores the previous, preferred behavior.

Recent 88ff72b commit changed ctkDICOMDatabase::fileValue behavior
so that it no longer returns DICOM tag value for files that are not already in the database.
This is an issue because this method has been used universally for any DICOM files
(it returned result faster for files that are cached in the DICOM database but it worked for files not in the database, too).

This commit restores the previous, preferred behavior.
@lassoan lassoan requested a review from pieper March 5, 2025 03:09
@lassoan lassoan self-assigned this Mar 5, 2025
@lassoan
Copy link
Member Author

lassoan commented Mar 5, 2025

@Punzo Could you please check if this fix looks good to you?

The issue came up when users reported an error that was caused by this call (that gets a DICOM tag for a file that may not be in the database yet) failing: https://github.com/SlicerHeart/SlicerHeart/blob/df916288bc3e6f1e2d209c11f2928806ed7a13c5/DicomUltrasoundPlugin/DicomUltrasoundPlugin.py#L73

@jcfr
Copy link
Member

jcfr commented Mar 5, 2025

re: appveyor

I removed the remaining appveyor webhooks, and follow-up pull requests should not report failed appveyor build.

@jcfr
Copy link
Member

jcfr commented Mar 5, 2025

@lassoan Would this be a candidate for another patch release ?

@lassoan
Copy link
Member Author

lassoan commented Mar 5, 2025

Would this be a candidate for another patch release ?

Yes. It is not very common to get fileValue for a file that is not in the DICOM database, but as the example shows, it happens.

Copy link
Contributor

@Punzo Punzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix 👍

@jcfr jcfr merged commit 7f8e1a6 into commontk:master Mar 5, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants