Skip to content

Commit

Permalink
appendresultgui now either overwrites or always appends the identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Jun 6, 2023
1 parent 1bab14d commit c5dd9eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/matRad_appendResultGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@

if boolOverwrite
resultGUI.(caFieldnames{i,1}) = resultGUItoAppend.(caFieldnames{i,1});

elseif isfield(resultGUI,caFieldnames{i,1})
resultGUI.([caFieldnames{i,1} '_' Identifier]) = resultGUItoAppend.(caFieldnames{i,1});

elseif ~isfield(resultGUI,caFieldnames{i,1})
resultGUI.(caFieldnames{i,1}) = resultGUItoAppend.(caFieldnames{i,1});
else
resultGUI.([caFieldnames{i,1} '_' Identifier]) = resultGUItoAppend.(caFieldnames{i,1});
end

end
Expand Down

0 comments on commit c5dd9eb

Please sign in to comment.