Radiographic plots of average kVp and mAs per acquisition protocol sometimes fail. This occurs when there are more protocols with kVp or mAs data than there are protocols with DAP data. This has come to light due to a new x-ray system temporarily stopping populating the DAP field, but continuing to populate the kVp and mAs fields.
This is happening because the number of iterations in a
for loop in
views.py (lines 413 to 470) is controlled by the number of acquisition protocols that have a DAP value.
It would be solved by replacing the single
for loop with three others: one for the DAP, one for the kVp and one for the mAs data.
I've marked the bug as "minor" because I think it's unlikely to affect a user.