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

Threshoulding: fixed bug in checking parameters version

parent 2109ea91
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ classdef GtThreshold < handle
grain_file = fullfile(phase_dir, sprintf('grain_%04d.mat', grainID));
grain = load(grain_file, 'vol', 'shift', 'id');
if (isfield(obj.param.rec.grains) ...
if (isfield(obj.param.rec, 'grains') ...
&& ismember(upper(obj.param.rec.grains.algorithm), {'6DL1', '6DTV', '6DTVL1'}))
file_details_path = fullfile(phase_dir, ...
sprintf('grain_details_%04d.mat', grainID));
......@@ -174,7 +174,7 @@ classdef GtThreshold < handle
grain = load(filePath);
% Should be enabled as soon as GrainsManager can handle it.
% if (isfield(obj.param.rec.grains) ...
% if (isfield(obj.param.rec, 'grains') ...
% && ismember(upper(obj.param.rec.grains.algorithm), {'6DL1', '6DTV', '6DTVL1'}))
% file_details_path = fullfile(phase_dir, ...
% sprintf('grain_details_%04d.mat', grainID));
......
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