Bugfix/ignore outside densities#900
Conversation
… all dose engines
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #900 +/- ##
==========================================
- Coverage 54.80% 54.79% -0.02%
==========================================
Files 320 320
Lines 20548 20567 +19
==========================================
+ Hits 11261 11269 +8
- Misses 9287 9298 +11 ☔ View full report in Codecov by Sentry. |
Test Results 3 files ±0 3 suites ±0 34m 31s ⏱️ + 2m 39s For more details on these failures, see this check. Results for commit e73b6e4. ± Comparison against base commit adf48b0. ♻️ This comment has been updated with latest results. |
wahln
left a comment
There was a problem hiding this comment.
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.
|
Additionally, some documentation for this consistency between stf and dosecalc might be helpful |
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 |
…e, also solves octave/ matrad interpolation issue in tests
|
Final requests from my side:
|
done |
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