|
140 | 140 |
|
141 | 141 | end |
142 | 142 |
|
143 | | - methods(Access = protected) |
| 143 | + methods (Access = protected) |
144 | 144 |
|
145 | 145 | dij = calcDose(this,ct,cst,stf) |
146 | 146 |
|
@@ -220,7 +220,7 @@ function writeTreeDirectory(this) |
220 | 220 |
|
221 | 221 | %% Write files functions |
222 | 222 |
|
223 | | - writeRunFile(~, fName) |
| 223 | + writeRunFile(this, fName) |
224 | 224 |
|
225 | 225 | writeRegionsFile(this,fName, stf) |
226 | 226 |
|
@@ -377,7 +377,7 @@ function writeHlut(this,hLutFile) |
377 | 377 | fredCmdCall = newCmdString; |
378 | 378 | elseif isempty(fredCmdCall) |
379 | 379 | 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'; |
381 | 381 | fredCmdCall = 'fred '; |
382 | 382 | elseif isunix |
383 | 383 | fredCmdCall = 'if [ -f ~/.fredenv.sh ] ; then source ~/.fredenv.sh ; fi; fred'; |
@@ -837,32 +837,32 @@ function updatePaths(obj, rootFolder) |
837 | 837 | end |
838 | 838 |
|
839 | 839 |
|
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 | + |
848 | 848 | if isnumeric(value) || islogical(value) |
849 | 849 | switch value |
850 | 850 | case 1 |
851 | 851 | this.externalCalculation = 'write'; |
852 | 852 | case 0 |
853 | 853 | this.externalCalculation = 'off'; |
854 | 854 | 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'})) |
860 | 858 | 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 |
866 | 866 |
|
867 | 867 | end |
868 | 868 | end |
|
0 commit comments