Skip to content

Commit

Permalink
fixing a problem with the constant matRadRoot property in the config …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
wahln committed Sep 17, 2021
1 parent a97b6be commit 658b390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MatRad_Config.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
matRad_version; %MatRad version string
end

properties (Constant)
matRadRoot = fileparts(mfilename('fullpath'));
properties (SetAccess = private)
matRadRoot;
end

methods (Access = private)
Expand All @@ -63,6 +63,8 @@
obj.getEnvironment();
obj.matRad_version = matRad_version();

obj.matRadRoot = fileparts(mfilename('fullpath'));

%Just to catch people messing with the properties in the file
if ~isempty(obj.writeLog) && obj.writeLog
logFile = [obj.matRadRoot filesep 'matRad.log'];
Expand Down

0 comments on commit 658b390

Please sign in to comment.