Skip to content

Conversation

@SimonaFa
Copy link
Contributor

The matRad_plotSlice function allows to plot one dose slice in a flexible way: ct and dose cube are the only required parameters, while other optional parameters, e.g. cts, colorbar, iso lines, contours, line and text properties, etc., can be specified in the Name-Value pair format. The changes in the iso lines plotter ensure that 2D matrices are correctly passed to the function.

The new function Plot Slice allows to plot a single dose slice in a flexible way: ct and dose cube are the only required parameters, but other optional, e.g. colorbar, legend, iso dose lines, line and text properties, can be specified. The bug fixing ensures that a 2D quantity is correctly called within the function.
@codecov
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

Attention: Patch coverage is 91.79104% with 11 lines in your changes missing coverage. Please review.

Project coverage is 52.51%. Comparing base (58f24a3) to head (ced961e).
Report is 22 commits behind head on dev.

Files with missing lines Patch % Lines
...planAnalysis/samplingAnalysis/matRad_latexReport.m 0.00% 3 Missing ⚠️
matRad/util/matRad_plotSlice.m 97.60% 3 Missing ⚠️
matRad/plotting/matRad_plotIsoDoseLines.m 33.33% 2 Missing ⚠️
matRad/util/matRad_plotSliceWrapper.m 0.00% 2 Missing ⚠️
...ingAnalysis/matRad_createAnimationForLatexReport.m 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #818      +/-   ##
==========================================
+ Coverage   52.41%   52.51%   +0.10%     
==========================================
  Files         306      307       +1     
  Lines       19477    19564      +87     
==========================================
+ Hits        10209    10275      +66     
- Misses       9268     9289      +21     

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

@wahln
Copy link
Contributor

wahln commented Feb 5, 2025

Let's change the function in the following way:

  • Always ask for ct, but not for dose.
  • Add an option to not show the ct

Then please create some tests for calling the function. You can use one of the tiny test data sets to have all strutctures (ct, cst, resultGUI) available.

wahln and others added 4 commits February 7, 2025 13:55
Ct is the only required parameter. Dose cube is optional. Option for plotting the ct added.
… dose an optional variable. plotSliceWrapper modified to deprecated function and calling plotSlice instead.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

warning('Deprecation warning: matRad_plotSliceWrapper is deprecated. Using matRad_plot_Slice instead');
Copy link
Contributor

Choose a reason for hiding this comment

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

we have a dedicated matRad_cfg.dispDeprecationWarning(...) for this

@github-actions
Copy link

github-actions bot commented Jun 18, 2025

Test Results

  3 files  ±0    3 suites  ±0   41m 34s ⏱️ +18s
285 tests +3  285 ✅ +3  0 💤 ±0  0 ❌ ±0 
951 runs  +9  946 ✅ +9  5 💤 ±0  0 ❌ ±0 

Results for commit ced961e. ± Comparison against base commit 58f24a3.

♻️ This comment has been updated with latest results.

@wahln wahln merged commit ab21a6b into e0404:dev Jun 23, 2025
9 checks passed
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