Skip to content

Use per-fraction reference doses in quality indicators#909

Open
acsevillam wants to merge 1 commit into
e0404:devfrom
acsevillam:pr/dev-quality-indicators-per-fraction
Open

Use per-fraction reference doses in quality indicators#909
acsevillam wants to merge 1 commit into
e0404:devfrom
acsevillam:pr/dev-quality-indicators-per-fraction

Conversation

@acsevillam
Copy link
Copy Markdown

Bug description

This PR ports the fix proposed in #904 to the current dev branch.

Quality indicators could mix per-fraction dose cubes with total prescription/objective doses in plan analysis paths.

Approach

This PR keeps canonical quality indicators in per-fraction dose units and adds explicit conversion helpers for display/evaluation in total dose when requested.

Validation

  • MATLAB R2025b:
    • matRad_runTests('test/planAnalysis/test_calcQualityIndicators.m')
    • matRad_runTests('test/planAnalysis')
  • MISS_HIT:
    • mh_metric
    • mh_style
    • mh_lint

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 matRad | 🛠️ Build #32762458 | 📁 Comparing 6f7361e against latest (c014dc8)

  🔍 Preview build  

36 files changed · + 1 added · ± 35 modified

+ Added

± Modified

Copy link
Copy Markdown
Contributor

@wahln wahln left a comment

Choose a reason for hiding this comment

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

This is also quite nice, but I would expand a bit on the detection of objectives / constraints as suggested in the line comment.

Comment on lines +79 to +81
isUnderdoseObjective = isa(obj, 'DoseObjectives.matRad_SquaredDeviation') || ...
isa(obj, 'DoseObjectives.matRad_SquaredUnderdosing') || ...
isa(obj, 'DoseObjectives.matRad_MinDVH');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here you could also check for Constraints (on Dose, maybe DVH. EUD might also be okay (with negative exponent)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants