Skip to content

Commit

Permalink
Merge pull request #571 from g-stanic/interface/python
Browse files Browse the repository at this point in the history
Changed matRad_callFromPython.m
  • Loading branch information
wahln authored Jul 29, 2022
2 parents 1bb7d84 + f6e28a9 commit e8bc3fd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions matRad_callFromPython.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ function matRad_callFromPython(functionName, outputName, varargin)

execFunc = sprintf('%s = %s(%s);', outputName, functionName, strjoin(functionVars,','));

if functionName=='matRadGUI'
execFunc = 'matRadGUI';
end
%if functionName=='matRadGUI'
% execFunc = 'matRadGUI';
%end

eval(execFunc);

if execFunc ~= 'matRadGUI'
save(strcat(outputName,'.mat'), outputName);
end
save(strcat(outputName,'.mat'), outputName);

end

0 comments on commit e8bc3fd

Please sign in to comment.