Skip to content

Commit

Permalink
add some display reconfigurations for octave in matRad config
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Sep 5, 2022
1 parent c0a9f08 commit fea82a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion MatRad_Config.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@

%Set Version
obj.getEnvironment();
obj.matRad_version = matRad_version();
obj.matRad_version = matRad_version();

%Configure Environment
obj.configureEnvironment();

%Just to catch people messing with the properties in the file
if ~isempty(obj.writeLog) && obj.writeLog
Expand Down Expand Up @@ -305,6 +308,13 @@ function getEnvironment(obj)

end
end

function configureEnvironment(obj)
if obj.isOctave
struct_levels_to_print(0); %Disables full printing of struct array fields
warning("off","Octave:data-file-in-path"); %Disables warning of loading patients from the data folder
end
end
end

methods(Static)
Expand Down

0 comments on commit fea82a8

Please sign in to comment.