Skip to content

Commit

Permalink
added TODOs to check commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
piastammer authored Jul 21, 2023
1 parent 59e3e43 commit 42a4edc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions topas/matRad_TopasConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ function writeRunHeader(obj,fID,fieldIx,runIx,ctScen)
fprintf(fID,'\n');
fprintf(fID,['i:Ts/Seed = ',num2str(runIx),'\n']);

%TODO: remove or document
%fprintf(fID,'includeFile = %s/TOPAS_Simulation_Setup.txt\n',obj.thisFolder);
%fprintf(fID,'includeFile = %s/TOPAS_matRad_geometry.txt\n',obj.thisFolder);
%fprintf(fID,'includeFile = %s/TOPAS_scorer_surfaceIC.txt\n',obj.thisFolder);
Expand Down Expand Up @@ -1725,7 +1726,7 @@ function writeStfFields(obj,ct,stf,pln,w,baseData)
obj.writeScorers(fileID);

% Write dij-related config lines
% We should discuss here if that's something that has to be available for photons as well
% TODO: move this to github issue/todo -> We should discuss here if that's something that has to be available for photons as well
if ~strcmp(obj.radiationMode,'photons')
if obj.scorer.calcDij
fprintf(fileID,'\n');
Expand Down Expand Up @@ -1941,7 +1942,7 @@ function writePatient(obj,ct,pln)
fprintf(fID,['iv:Ge/Patient/SchneiderHounsfieldUnitSections = %i',repmat(' %g',1,numel(densityCorrection.unitSections)),'\n'],numel(densityCorrection.unitSections),densityCorrection.unitSections);
fprintf(fID,['uv:Ge/Patient/SchneiderDensityOffset = %i',repmat(' %g',1,numel(densityCorrection.offset)),'\n'],numel(densityCorrection.offset),densityCorrection.offset);
% this is needed for a custom fprintf format which formats integers i to 'i.' and floats without trailing zeros
% this is potentially not necessary but was done to mimick the original TOPAS Schneider converter file
% TODO: check whether this can be removed -> this is potentially not necessary but was done to mimick the original TOPAS Schneider converter file
TOPASisFloat = mod(densityCorrection.factor,1)==0;
fprintf(fID,['uv:Ge/Patient/SchneiderDensityFactor = %i ',strjoin(cellstr(char('%1.01f '.*TOPASisFloat' + '%1.15g '.*~TOPASisFloat'))),'\n'],numel(densityCorrection.factor),densityCorrection.factor);
TOPASisFloat = mod(densityCorrection.factorOffset,1)==0;
Expand Down

0 comments on commit 42a4edc

Please sign in to comment.