Skip to content

Bugfix/ignore outside densities - #900

Merged
wahln merged 24 commits into
e0404:devfrom
JenHardt:bugfix/ignoreOutsideDensities
Jul 15, 2026
Merged

Bugfix/ignore outside densities#900
wahln merged 24 commits into
e0404:devfrom
JenHardt:bugfix/ignoreOutsideDensities

Conversation

@JenHardt

Copy link
Copy Markdown
Contributor

Making of ignoreOutsideDensities and useGivenEqDensityCube consistent between stf generation and dose engines, a problem for the dose engines arose because the analytcial calculation was performed on the RSP cube, where ignoreOutsideDensities was applied, but the MC would often dirrectly use the HU cube to do material conversion, where this was not applied

@read-the-docs-community

read-the-docs-community Bot commented Mar 27, 2026

Copy link
Copy Markdown

Documentation build overview

📚 matRad | 🛠️ Build #33595879 | 📁 Comparing ef60971 against latest (c014dc8)

  🔍 Preview build  

39 files changed · + 1 added · ± 38 modified

+ Added

± Modified

@codecov

codecov Bot commented Mar 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.76923% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.48%. Comparing base (96d4a43) to head (ef60971).

Files with missing lines Patch % Lines
...nes/@matRad_DoseEngineBase/matRad_DoseEngineBase.m 59.25% 11 Missing ⚠️
matRad/steering/matRad_StfGeneratorBase.m 82.60% 4 Missing ⚠️
matRad/util/matRad_interp3.m 42.85% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #900      +/-   ##
==========================================
+ Coverage   55.46%   55.48%   +0.01%     
==========================================
  Files         331      331              
  Lines       20906    20930      +24     
==========================================
+ Hits        11596    11612      +16     
- Misses       9310     9318       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Mar 27, 2026

Copy link
Copy Markdown

Test Results

    3 files  ±0      3 suites  ±0   34m 35s ⏱️ + 1m 36s
  415 tests +1    415 ✅ +1  0 💤 ±0  0 ❌ ±0 
1 341 runs  +3  1 336 ✅ +3  5 💤 ±0  0 ❌ ±0 

Results for commit ef60971. ± Comparison against base commit 96d4a43.

♻️ This comment has been updated with latest results.

@wahln wahln left a comment

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.

This is very nice for computation consistency, thanks.

The code itself looks very nice, but could you add some minimal tests to check the correct behavior? Probably its difficult to catch the corresponding warnings, but you could probably check the resulting dose / generated stf's if you see the expected discrepancies.

@wahln

wahln commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Additionally, some documentation for this consistency between stf and dosecalc might be helpful

@JenHardt

Copy link
Copy Markdown
Contributor Author

This is very nice for computation consistency, thanks.

The code itself looks very nice, but could you add some minimal tests to check the correct behavior? Probably its difficult to catch the corresponding warnings, but you could probably check the resulting dose / generated stf's if you see the expected discrepancies.

i think to check the expected result i would have to create a new test ct, because our current dummy test ct only has air outside of the patient anyway. I could create a new one with a dummy couch to test the behavior

@wahln

wahln commented May 5, 2026

Copy link
Copy Markdown
Contributor

Final requests from my side:

  • can you fix the merge conflicts by a branch update from develop?
  • can you add the change to the new changelog?

@JenHardt

Copy link
Copy Markdown
Contributor Author

Final requests from my side:

  • can you fix the merge conflicts by a branch update from develop?
  • can you add the change to the new changelog?

done

# Conflicts:
#	CHANGELOG.md
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

This PR was automatically marked as stale it has been open 30 days with no activity. Please review/update/merge this PR.

@github-actions github-actions Bot added the stale Automatic label for stale issues label Jul 4, 2026
wahln added 2 commits July 15, 2026 01:31
# Conflicts:
#	matRad/MatRad_Config.m
#	matRad/doseCalc/+DoseEngines/matRad_TopasMCEngine.m
#	test/testData/helper_testDataCreater.m
@wahln
wahln merged commit 21fb6ad into e0404:dev Jul 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Automatic label for stale issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants