Skip to content
Snippets Groups Projects
Commit 3a3c95d2 authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

minor fixes

parent 810f2d53
No related branches found
No related tags found
No related merge requests found
...@@ -9,12 +9,11 @@ else ...@@ -9,12 +9,11 @@ else
fieldname = 'ODF6D'; fieldname = 'ODF6D';
end end
disp(sprintf('searching for entry %s',fieldname));
load(sprintf('4_grains/phase_%02d/index.mat', phase_ID)); load(sprintf('4_grains/phase_%02d/index.mat', phase_ID));
grain_file_name = sprintf('4_grains/phase_%02d/grain_details_', phase_ID); grain_file_name = sprintf('4_grains/phase_%02d/grain_details_', phase_ID);
if ~exist(fieldname, 'var')
fieldname = 'ODF6D'
end
num_grains = numel(grain); num_grains = numel(grain);
...@@ -25,7 +24,7 @@ for i = 1 : num_grains ...@@ -25,7 +24,7 @@ for i = 1 : num_grains
num_chars = fprintf('%d/%d (failed: %d)', i, num_grains, failed_grains); num_chars = fprintf('%d/%d (failed: %d)', i, num_grains, failed_grains);
mf = matfile(sprintf('%s%04d.mat', grain_file_name, i)); mf = matfile(sprintf('%s%04d.mat', grain_file_name, i));
try try
size(mf, 'ODF6D'); size(mf, fieldname);
catch catch
list = [list, i]; list = [list, i];
failed_grains = failed_grains + 1; failed_grains = failed_grains + 1;
......
...@@ -38,7 +38,7 @@ if (~GPU_OK) ...@@ -38,7 +38,7 @@ if (~GPU_OK)
fprintf('\nSubmitting to OAR.\n') fprintf('\nSubmitting to OAR.\n')
end end
if (~exist('phaseID','var') || isempty(phase_id)) if (~exist('phase_id','var') || isempty(phase_id))
phase_id = 1; phase_id = 1;
end end
...@@ -134,10 +134,10 @@ end ...@@ -134,10 +134,10 @@ end
% If input parameters grain_ids and cluster_ids are both empty, we will % If input parameters grain_ids and cluster_ids are both empty, we will
% reconstruct all grains by default % reconstruct all grains by default
first = 1;
last = sample.phases{phase_id}.getNumberOfGrains();
if (isempty(conf.grain_ids) && isempty(conf.cluster_ids)) if (isempty(conf.grain_ids) && isempty(conf.cluster_ids))
first = 1;
last = sample.phases{phase_id}.getNumberOfGrains();
conf.grain_ids = first:last; conf.grain_ids = first:last;
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