Skip to content

Commit

Permalink
Rc/v3 GUI Bug Fix (#789)
Browse files Browse the repository at this point in the history
* bug fix : Dicom double  str2double conversion for the sliceThickness

* bugFix: comparing char values instead of double

* Typo

* the PlnStfMatch triggers multiple errors

* bug Fix : 1)  mistaken reference to shortName for multscen, 2) check for runDAO field in pln.propOpt

---------

Co-authored-by: Niklas Wahl <[email protected]>
  • Loading branch information
amitantony and wahln authored Nov 13, 2024
1 parent 7e72320 commit 30d5d9b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions matRad/gui/widgets/matRad_PlanWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -891,16 +891,22 @@

if evalin('base','exist(''ct'')')
contentPopUpMultScen = get(handles.popMenuMultScen,'String');
if ~isfield(pln,'multScen')
try
scenModel = matRad_ScenarioModel.create(pln.multScen);
ix = find(strcmp(scenModel.shortName,contentPopUpMultScen));

Check warning on line 896 in matRad/gui/widgets/matRad_PlanWidget.m

View check run for this annotation

Codecov / codecov/patch

matRad/gui/widgets/matRad_PlanWidget.m#L896

Added line #L896 was not covered by tests
catch
ix = 1;
else
ix = find(strcmp(pln.multScen.shortName,contentPopUpMultScen));
end

set(handles.popMenuMultScen,'Value',ix);
end


set(handles.btnRunDAO,'Value',pln.propOpt.runDAO);
if strcmp(pln.radiationMode,'photons') && isfield(pln.propOpt,'runDAO')
set(handles.btnRunDAO,'Value',pln.propOpt.runDAO);
else
set(handles.btnRunDAO,'Value', 0 );

Check warning on line 907 in matRad/gui/widgets/matRad_PlanWidget.m

View check run for this annotation

Codecov / codecov/patch

matRad/gui/widgets/matRad_PlanWidget.m#L907

Added line #L907 was not covered by tests
end

if isfield(pln, 'propSeq') && isfield(pln.propSeq, 'sequencingLevel')
set(handles.btnRunSequencing,'Value',pln.propSeq.runSequencing);
set(handles.editSequencingLevel,'String',num2str(pln.propSeq.sequencingLevel));
Expand Down

0 comments on commit 30d5d9b

Please sign in to comment.