Skip to content

Commit

Permalink
Merge pull request e0404#362 from becker89/dev
Browse files Browse the repository at this point in the history
show an error if matRadGUI is started with old cst (non-class based optimization) format.
  • Loading branch information
Hans-Peter Wieser authored Aug 8, 2019
2 parents 831fb96 + 69b8c68 commit 81e4545
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion matRadGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -4252,7 +4252,12 @@ function checkbox_lockColormap_Callback(hObject, eventdata, handles)
if strcmp(cst(i,3),'IGNORED')~=1
for j=1:numel(cst{i,6})

obj = cst{i,6}{j};
if ~isstruct(cst{i,6})
obj = cst{i,6}{j};
else
error('Objective in old format!')
% write a wrapper to convert to new class based structure
end

%Convert to class if not
if ~isa(obj,'matRad_DoseOptimizationFunction')
Expand Down

0 comments on commit 81e4545

Please sign in to comment.