Skip to content

Commit

Permalink
bug Fix : 1) mistaken reference to shortName for multscen, 2) check f…
Browse files Browse the repository at this point in the history
…or runDAO field in pln.propOpt
  • Loading branch information
amitantony committed Nov 11, 2024
1 parent f4d11ee commit 41f38e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions matRad/gui/widgets/matRad_PlanWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,17 @@
if ~isfield(pln,'multScen')
ix = 1;
else
ix = find(strcmp(pln.multScen.shortName,contentPopUpMultScen));
ix = find(strcmp(pln.multScen,contentPopUpMultScen));

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

View check run for this annotation

Codecov / codecov/patch

matRad/gui/widgets/matRad_PlanWidget.m#L897

Added line #L897 was not covered by tests
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 905 in matRad/gui/widgets/matRad_PlanWidget.m

View check run for this annotation

Codecov / codecov/patch

matRad/gui/widgets/matRad_PlanWidget.m#L905

Added line #L905 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 41f38e3

Please sign in to comment.