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

Disallow measurement report with no measurement groups #325

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CPBridge
Copy link
Collaborator

Fix for #324 (@nicolay-r)

Explicitly disallow passing None for the imaging_measurements parameter of the MeasurementReport class. Previously this failed with a bug relating to an unbound variable.

Note that I have still kept the imaging_measurements as an "optional" parameter in terms of the function signature in order to allow expansion in the future to add support for qualitative evaluations or image derived measurements (rows 10 and 12 of the TID1500 table).

I further looked through static analysis results on this file in case there were other cases with similar "indentation problems" leading to potentially unbound locals. I found one in the ImageLibrary class that would prevent multiple image library groups being added to the library. This is fixed also

@CPBridge CPBridge added the bug Something isn't working label Feb 13, 2025
@CPBridge CPBridge self-assigned this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant