diff --git a/zUtil_Cryst/gtCrystXopInitialize.m b/zUtil_Cryst/gtCrystXopInitialize.m index a5cfcb34ee341f4cf3dd6b97e14e2bee810eca19..07708442e8f38f8d4a39f388bafa2a2fdd870132 100644 --- a/zUtil_Cryst/gtCrystXopInitialize.m +++ b/zUtil_Cryst/gtCrystXopInitialize.m @@ -1,11 +1,12 @@ -function [xop,msg] = gtCrystXopInitialize(parameters, material) +function [xop,msg] = gtCrystXopInitialize(name, material) % GTCRYSTXOPINITIALIZE Initializes the crystallographic stuff in the % parameters and load xop reflections -% [xop,msg] = gtCrystXopInitialize(parameters) -% -------------------------------------------- -% +% [xop,msg] = gtCrystXopInitialize(name, material) +% ------------------------------------------------ +% % INPUT: -% parameters = parameters file .mat <struct> +% name = parameters.acq.name +% material = phase name % % OUTPUT: % xop = xop structure with reflections <struct> @@ -15,14 +16,14 @@ function [xop,msg] = gtCrystXopInitialize(parameters, material) xop_dir=fullfile('/data','id11','graintracking','file_xop'); if ~exist(xop_dir,'dir') [~,msg]=mkdir(xop_dir); disp(msg) -elseif ~exist(fullfile(xop_dir,parameters.acq.name),'dir') - xop_dir=fullfile(xop_dir,parameters.acq.name); +elseif ~exist(fullfile(xop_dir,name),'dir') + xop_dir=fullfile(xop_dir,name); [~,msg]=mkdir(xop_dir); disp(msg) -elseif ~exist(fullfile(xop_dir,parameters.acq.name, material),'dir') - xop_dir=fullfile(xop_dir, parameters.acq.name, material); +elseif ~exist(fullfile(xop_dir,name, material),'dir') + xop_dir=fullfile(xop_dir, name, material); [~,msg]=mkdir(xop_dir); disp(msg) else - xop_dir=fullfile(xop_dir, parameters.acq.name, material, date()); + xop_dir=fullfile(xop_dir, name, material, date()); [~,msg]=mkdir(xop_dir); disp(msg) end