-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
computed image metrics returning last metric calculated rather than entire dictionary #517
Comments
So under metrics/image.py we see that in the definition of the Under core/image.py in the
So as This would not be an issue if different types of metrics were calculated, e.g. combining a |
There is a workaround, but it just requires more lines of code:
|
Yup, known issue that's still outstanding. https://forum.pylinac.com/t/retrieving-multiple-metrics-information/419. I will work on it early next week. Thanks! |
Thanks @jrkerns didn't realise you could override the metric name, that will get me out of trouble for now |
Describe the bug
using image metrics with
SizedDiskLocator
to find BBs in an image. Only the last metric to be evaluated is returned in the dictionary. The dictionary should contain the results of all metrics evaluated.To Reproduce
Steps to reproduce the behavior:
Run the following code:
bb_locations
is a dictionary containing a single entryExpected behavior
bb_locations
is a dictionary containing the points of BBs that were close top1
andp2
The text was updated successfully, but these errors were encountered: