Skip to content

Commit

Permalink
Merge pull request #20 from ThFriedrich/master
Browse files Browse the repository at this point in the history
v3.1 release preperation
  • Loading branch information
annickdebacker authored Nov 20, 2020
2 parents 7502794 + 4870d67 commit 268ba35
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Compiled
functions/startPath.txt
functions/datPath.txt
34 changes: 14 additions & 20 deletions StatSTEM.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ function StatSTEM()
% Contact: [email protected]
%--------------------------------------------------------------------------

forCompiling = 0; % Put to 1 when compiling

% Load functions
path = mfilename('fullpath');
path = path(1:end-9);
pathF = [path,filesep,'functions']; % Path for loading fit functions
pathG = [path,filesep,'GUI']; % Path for loading GUI functions
addpath([path,';',genpath(pathF),';',genpath(pathG)])

% Start a splash screen
if forCompiling
if isdeployed
splashImg = imread('splash.png');
imgPan = imread('imgGui.png');
else
% Load functions
path = mfilename('fullpath');
path = path(1:end-9);
pathF = [path,filesep,'functions']; % Path for loading fit functions
pathG = [path,filesep,'GUI']; % Path for loading GUI functions

addpath([path,';',genpath(pathF),';',genpath(pathG)])
imgPan = imread([pathG,filesep,'imgGui.png']);
splashImg = imread([pathG,filesep,'splash.png']);
spl = splash(splashImg);
end
Expand Down Expand Up @@ -70,21 +70,15 @@ function StatSTEM()
warning('on','all')

% Create left panels
h = panelMaker(h,'Preparation',forCompiling);
h = panelMaker(h,'Fit Model',forCompiling);
h = panelMaker(h,'Analysis',forCompiling);
h = panelMaker(h,'Preparation',isdeployed);
h = panelMaker(h,'Fit Model',isdeployed);
h = panelMaker(h,'Analysis',isdeployed);

% Create panel for loading and storing files
h.left.loadStore.panel = uipanel('Parent',h.left.main,'units','normalized','Position',[0 0 1 0.1],'Title','Load/save files','FontSize',10);%,'ShadowColor',[0.95 0.95 0.95],'ForegroundColor',[0.95 0.95 0.95],'HighlightColor',[0.95 0.95 0.95],'BackgroundColor',[0.95 0.95 0.95]);
h.left.loadStore.load = uicontrol('Parent',h.left.loadStore.panel,'units','normalized','Position',[0.02 0.2 0.47 0.75],'String','Load','FontSize',10);
h.left.loadStore.save = uicontrol('Parent',h.left.loadStore.panel,'units','normalized','Position',[0.49 0.2 0.47 0.75],'String','Save','FontSize',10,'Enable','off');

% Create image of StatSTEM
if forCompiling
imgPan = imread('imgGui.png');
else
imgPan = imread([pathG,filesep,'imgGui.png']);
end
h = panelStatSTEM(h,imgPan);

%% Create right panels
Expand Down Expand Up @@ -156,7 +150,7 @@ function StatSTEM()
% Limit minimum size and make window appear on full screen
% set(h.fig,'Position',[1 1 screen(3) screen(4)])
set(h.fig,'Visible','on')
if ~forCompiling
if ~isdeployed
close(spl) % Close splash window
end
waitfor(h.fig,'Visible','on')
Expand Down
2 changes: 1 addition & 1 deletion functions/Analysis/Indexing/STEMindexing.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if ind~=1
unitCoor = [unitCoor(ind,:); unitCoor(1:ind-1,:); unitCoor(ind+1:end,:)];
unit.coor2D = [unit.coor2D(ind,:); unit.coor2D(1:ind-1,:); unit.coor2D(ind+1:end,:)];
unit.atom2D = [unit.atom2D(ind,:); unit.atomsD(1:ind-1,:); unit.atom2D(ind+1:end,:)];
unit.atom2D = [unit.atom2D(ind,:); unit.atom2D(1:ind-1,:); unit.atom2D(ind+1:end,:)];
unitType = [unitType(ind,:); unitType(1:ind-1,:); unitType(ind+1:end,:)];
end
else
Expand Down
2 changes: 1 addition & 1 deletion functions/PeakFinding/tfm_PeakFinder2.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
obs = obj.obs;
[ny,nx] = size(obs);

thr = 0;
thr = 0.05;
sigma = 10;
d_min = 0;

Expand Down
1 change: 0 additions & 1 deletion functions/datPath.txt

This file was deleted.

1 change: 0 additions & 1 deletion functions/startPath.txt

This file was deleted.

0 comments on commit 268ba35

Please sign in to comment.