Skip to content

Commit 4303e98

Browse files
committed
some matRad syntax changes to remove parsing errors
1 parent 388c44f commit 4303e98

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

matRad/doseCalc/+DoseEngines/@matRad_ParticleFREDEngine/matRad_ParticleFREDEngine.m

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140

141141
end
142142

143-
methods(Access = protected)
143+
methods (Access = protected)
144144

145145
dij = calcDose(this,ct,cst,stf)
146146

@@ -220,7 +220,7 @@ function writeTreeDirectory(this)
220220

221221
%% Write files functions
222222

223-
writeRunFile(~, fName)
223+
writeRunFile(this, fName)
224224

225225
writeRegionsFile(this,fName, stf)
226226

@@ -377,7 +377,7 @@ function writeHlut(this,hLutFile)
377377
fredCmdCall = newCmdString;
378378
elseif isempty(fredCmdCall)
379379
if ispc
380-
% fredCmdCall = 'wsl if [ -f ~/.fredenv.sh ] ; then source ~/.fredenv.sh ; fi; fred';
380+
%fredCmdCall = 'wsl if [ -f ~/.fredenv.sh ] ; then source ~/.fredenv.sh ; fi; fred';
381381
fredCmdCall = 'fred ';
382382
elseif isunix
383383
fredCmdCall = 'if [ -f ~/.fredenv.sh ] ; then source ~/.fredenv.sh ; fi; fred';
@@ -837,32 +837,32 @@ function updatePaths(obj, rootFolder)
837837
end
838838

839839

840-
function set.externalCalculation(this, value)
841-
% Set exportCalculation value, available options are:
842-
% - false: (default) runs the FRED simulation (requires FRED installation)
843-
% - write/1: triggers the file export
844-
% - 'path': simulation data will be loaded from the specified
845-
% path. Full simulation directory path should be provided.
846-
% Example: 'matRadRoot/userdata/FRED/'
847-
840+
function set.externalCalculation(this, value)
841+
% Set exportCalculation value, available options are:
842+
% - false: (default) runs the FRED simulation (requires FRED installation)
843+
% - write/1: triggers the file export
844+
% - 'path': simulation data will be loaded from the specified
845+
% path. Full simulation directory path should be provided.
846+
% Example: 'matRadRoot/userdata/FRED/'
847+
848848
if isnumeric(value) || islogical(value)
849849
switch value
850850
case 1
851851
this.externalCalculation = 'write';
852852
case 0
853853
this.externalCalculation = 'off';
854854
end
855-
elseif ischar(value)
856-
857-
if any(strcmp(value, {'write', 'off'}))
858-
this.externalCalculation = value;
859-
elseif isfolder(value)
855+
elseif ischar(value)
856+
857+
if any(strcmp(value, {'write', 'off'}))
860858
this.externalCalculation = value;
861-
862-
this.updatePaths(value);
863-
end
864-
end
865-
end
859+
elseif isfolder(value)
860+
this.externalCalculation = value;
861+
862+
this.updatePaths(value);
863+
end
864+
end
865+
end
866866

867867
end
868868
end

matRad/doseCalc/+DoseEngines/@matRad_ParticleFREDEngine/writeRunFile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function writeRunFile(~, fName)
1+
function writeRunFile(this, fName)
22
% FRED helper to write file for simulation
33
% call
44
% writeRunFile(fName)

0 commit comments

Comments
 (0)