Skip to content
Snippets Groups Projects
Commit 0a41b4f5 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

Xop : change function argument from


[xop,msg] = gtCrystXopInitialize(parameters, material)
[xop,msg] = gtCrystXopInitialize(name, material)

Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@387 4c865b51-4357-4376-afb4-474e03ccb993
parent cf662ce1
No related branches found
No related tags found
No related merge requests found
function [xop,msg] = gtCrystXopInitialize(parameters, material) function [xop,msg] = gtCrystXopInitialize(name, material)
% GTCRYSTXOPINITIALIZE Initializes the crystallographic stuff in the % GTCRYSTXOPINITIALIZE Initializes the crystallographic stuff in the
% parameters and load xop reflections % parameters and load xop reflections
% [xop,msg] = gtCrystXopInitialize(parameters) % [xop,msg] = gtCrystXopInitialize(name, material)
% -------------------------------------------- % ------------------------------------------------
% %
% INPUT: % INPUT:
% parameters = parameters file .mat <struct> % name = parameters.acq.name
% material = phase name
% %
% OUTPUT: % OUTPUT:
% xop = xop structure with reflections <struct> % xop = xop structure with reflections <struct>
...@@ -15,14 +16,14 @@ function [xop,msg] = gtCrystXopInitialize(parameters, material) ...@@ -15,14 +16,14 @@ function [xop,msg] = gtCrystXopInitialize(parameters, material)
xop_dir=fullfile('/data','id11','graintracking','file_xop'); xop_dir=fullfile('/data','id11','graintracking','file_xop');
if ~exist(xop_dir,'dir') if ~exist(xop_dir,'dir')
[~,msg]=mkdir(xop_dir); disp(msg) [~,msg]=mkdir(xop_dir); disp(msg)
elseif ~exist(fullfile(xop_dir,parameters.acq.name),'dir') elseif ~exist(fullfile(xop_dir,name),'dir')
xop_dir=fullfile(xop_dir,parameters.acq.name); xop_dir=fullfile(xop_dir,name);
[~,msg]=mkdir(xop_dir); disp(msg) [~,msg]=mkdir(xop_dir); disp(msg)
elseif ~exist(fullfile(xop_dir,parameters.acq.name, material),'dir') elseif ~exist(fullfile(xop_dir,name, material),'dir')
xop_dir=fullfile(xop_dir, parameters.acq.name, material); xop_dir=fullfile(xop_dir, name, material);
[~,msg]=mkdir(xop_dir); disp(msg) [~,msg]=mkdir(xop_dir); disp(msg)
else 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) [~,msg]=mkdir(xop_dir); disp(msg)
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