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

Fixed multi-detector bug in gtCalculateGrain

parent 9b567173
No related branches found
No related tags found
No related merge requests found
......@@ -142,12 +142,13 @@ for det_ind = app.det_ind
'Acquisition type should be: {"dct"} | "topotomo", but "%s" was given ("360degree" corresponds to "dct")', ...
mode);
end
if (is_topotomo)
if (isempty(app.pl_ind))
if (is_topotomo && isempty(app.pl_ind))
if (~isfield(acq, 'pl_ind') || isempty(acq.pl_ind))
warning('gtCalculateGrain:wrong_argument', ...
'When mode is "topotomo", "pl_ind" should also be pased');
continue;
continue
else
app.pl_ind = acq.pl_ind;
end
end
......
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