Skip to content

Commit

Permalink
fine-sampling fix to always select correct number of sub-pencils
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Jan 19, 2022
1 parent d5418d7 commit 87891d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matRad_calcParticleDose.m
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@

% empty bixels may happen during recalculation of error
% scenarios -> skip to next bixel
if ~any(currIx)
if ~any(currIx,'all')
continue;
end

Expand Down Expand Up @@ -312,7 +312,7 @@
end

% run over components
for c = 1:numOfSub
for c = 1:numOfSub(k)
tmpDose = zeros(size(currIx,1),1);
bixelDose = finalWeight(c,k).*matRad_calcParticleDoseBixel(...
radDepths(currIx(:,:,c),1,c), ...
Expand Down

0 comments on commit 87891d5

Please sign in to comment.