Skip to content
Snippets Groups Projects
Commit 36deb818 authored by Nicola Vigano's avatar Nicola Vigano Committed by Nicola Vigano
Browse files

Test-case creation: fixed bug

parent 6f410cca
No related branches found
No related tags found
No related merge requests found
......@@ -83,16 +83,16 @@ gv.ind = gv.ind';
% Element diffracting power
if (~exist('intvol', 'var') || isempty(intvol))
gv.pow = ones(1, nv, fedpars.gvtype);
else
if (numel(intvol) ~= nv)
error('gtFedTestLoadData_v2:wrong_argument', ...
'The volume of voxel intensities should have the same size as dmvol''s first 3 coordinates')
end
gv.pow = reshape(intvol, 1, []);
if (strcmp(fedpars.gvtype, 'single'))
gv.pow = single(gv.pow);
end
intvol = ones(gr_size, fedpars.gvtype);
end
if (numel(intvol) ~= nv)
error('gtFedTestLoadData_v2:wrong_argument', ...
'The volume of voxel intensities should have the same size as dmvol''s first 3 coordinates')
end
gv.pow = reshape(intvol, 1, []);
if (strcmp(fedpars.gvtype, 'single'))
gv.pow = single(gv.pow);
end
gv.used_ind = find(gv.pow > 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment