Skip to content

Commit

Permalink
Reflection-DED EBSD codes - small fixes
Browse files Browse the repository at this point in the history
Fixed analyze code; changed a variable in EBSP_PCSearch from 0 to false to avoid an error.
  • Loading branch information
TianbiZhang committed Nov 23, 2023
1 parent 9d679de commit a1d47c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
8 changes: 4 additions & 4 deletions modules/ded_ebsd/Cu_Mapping_Analysis_2Passes.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
home;

%% start up Astro etc.
InputUser.Astro_loc = 'C:\Users\billy\Documents\GitHub\AstroEBSD';
InputUser.location_mtex='E:\MATLAB\mtex-5.8.0\';
run(fullfile(InputUser.Astro_loc,'start_AstroEBSD.m'));
run(fullfile(InputUser.location_mtex,'startup.m'));
InputUser.location_mtex="C:\Users\billy\Documents\MATLAB\mtex-5.10.0";
run(fullfile(InputUser.location_mtex, "startup_mtex.m"));
InputUser.Astro_loc = "C:\Users\billy\Documents\MATLAB\AstroEBSD-main";
run(fullfile(InputUser.Astro_loc, "start_AstroEBSD.m"));

%% location of patterns
pattern_loc='C:\Users\billy\OneDrive - UBC\PhD\TKD\20230807_Cu_EBSD';
Expand Down
14 changes: 6 additions & 8 deletions modules/ded_ebsd/Si_LineScan_Analysis.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
home;

%% start astro & mtex - please edit the paths!

InputUser.Astro_loc = 'C:\Users\billy\Documents\GitHub\AstroEBSD';
InputUser.location_mtex='E:\MATLAB\mtex-5.8.0\';
run(fullfile(InputUser.Astro_loc,'start_AstroEBSD.m'));
run(fullfile(InputUser.location_mtex,'startup.m'));

pattern_loc = 'C:\Users\billy\OneDrive - UBC\PhD\TKD\20230804_Si_EBSD\Vertscan';
InputUser.location_mtex="C:\Users\billy\Documents\MATLAB\mtex-5.10.0";
run(fullfile(InputUser.location_mtex, "startup_mtex.m"));
InputUser.Astro_loc = "C:\Users\billy\Documents\MATLAB\AstroEBSD-main";
run(fullfile(InputUser.Astro_loc, "start_AstroEBSD.m"));
pattern_loc = "C:\Users\billy\OneDrive - UBC\PhD\TKD\20230804_Si_EBSD\Vertscan";

%% Enter pattern information and set up indexing
eangs=[176.81 19.31 225.90]*pi/180; %demo
Expand Down Expand Up @@ -57,7 +55,7 @@

%% Pattern I/O
num_pat_ini = 1;
num_pat_end = 1;
num_pat_end = 20;
pattern_root = 'Spot';
num_pats = num_pat_end - num_pat_ini + 1;

Expand Down
2 changes: 1 addition & 1 deletion modules/indexing/EBSP_PCSearch.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%set up the GA - needs the global optimisation toolbox
PC_GA_options = optimoptions('ga');
PC_GA_options.FunctionTolerance=1E-3;
PC_GA_options.UseParallel=0;
PC_GA_options.UseParallel=false;
PC_GA_options.MaxGenerations=15;
PC_GA_options.PopulationSize=30;
PC_GA_options.MaxStallGenerations=20;
Expand Down

0 comments on commit a1d47c3

Please sign in to comment.