Cleanup par4Gbl_Main8c.m

This commit is contained in:
2024-07-25 10:26:37 -04:00
parent 359b936b45
commit adf507476d
5 changed files with 176 additions and 268 deletions

View File

@@ -14,7 +14,9 @@ function varargout = EASYconsole(varargin)
wCodeDir=pwd;
% changing directory to wCodeDir
returnStartDir
% returnStartDir
disp(getenv('SCANS_DIR'));
%% GUI INTERFACE DESIGN %%
% beginning of GUI formation & design, see help GUI or help GUIDE in
@@ -102,12 +104,12 @@ end
%% CONSOLE BUTTON INTERFACES %%
% File Button Interface
function FileMenu_Callback(~, ~, ~)
returnStartDir
%returnStartDir
end
% Load Experiment Button Interface
function LoadExp_Callback(~, ~, ~)
returnStartDir
%returnStartDir
end
% New Experiment Button Interface
@@ -123,7 +125,7 @@ function NewExpDat_Callback(~, ~, ~)
global scan
% put all users on same working directory
returnStartDir
%returnStartDir
% Create a new experiment
try
@@ -177,7 +179,7 @@ function NewExpDat_Callback(~, ~, ~)
sbdg= cell(1,scanMax);
save((fullfile(resDir,'Fotos','Nbdg')),'sbdg');
catch ME
returnStartDir
% returnStartDir
disp('Error Creating a New Experiment')
end
@@ -202,8 +204,6 @@ function LoadDatFile_Callback(~, ~, ~)
global fhconsole
%global ImParMat
returnStartDir
% TODO this entire try block needs work
try
% TODO this whole block is highly questionable
@@ -265,11 +265,10 @@ end
% callback for the 'Run' in the dropdown menu
function run_Callback(~, ~, ~)
returnStartDir
end
function runPlateMapPintool_Callback(~, ~, ~)
returnStartDir
try
NImapPT
catch ME
@@ -279,7 +278,6 @@ function runPlateMapPintool_Callback(~, ~, ~)
end
function NImCFcombo_Callback(~, ~, ~)
returnStartDir
try
par4Gbl_Main8c
catch
@@ -289,7 +287,6 @@ function NImCFcombo_Callback(~, ~, ~)
end
function runPlateImAnal_Callback(~, ~, ~)
returnStartDir
try
NImStartupOnly
catch ME
@@ -300,7 +297,6 @@ end
function PlateCFit_Callback(~, ~, ~)
%global ExpOutmat
returnStartDir
try
NCstart
catch ME
@@ -340,10 +336,8 @@ function Tools_Callback(~, ~, ~)
end
function runOverlayPlots_Callback(~, ~, ~)
returnStartDir
try
DoverlayPlots2
returnStartDir
EASYconsole
catch ME
returnStartDir
@@ -352,10 +346,8 @@ function runOverlayPlots_Callback(~, ~, ~)
end
function runFotoStrip_Callback(~, ~, ~)
returnStartDir
try
F_NImStartup_CentCir
returnStartDir
EASYconsole
catch ME
returnStartDir
@@ -364,7 +356,6 @@ function runFotoStrip_Callback(~, ~, ~)
end
function runDisplayFig_Callback(~, ~, ~)
returnStartDir
try
UfigDisplay
catch ME
@@ -374,7 +365,6 @@ function runDisplayFig_Callback(~, ~, ~)
end
function runViewParameters_Callback(~, ~, ~)
returnStartDir
try
catch ME
returnStartDir
@@ -383,17 +373,7 @@ function runViewParameters_Callback(~, ~, ~)
end
function QkviewN_Callback(~, ~, ~)
returnStartDir
try
try
cd(fullfile(ExpPath))
catch
if ispc
cd('C:\')
else
cd(fullfile('~'));
end
end
QkviewImages
catch ME
returnStartDir
@@ -402,7 +382,6 @@ function QkviewN_Callback(~, ~, ~)
end
function CFdisplay_Callback(~, ~, ~)
returnStartDir
try
NCsingleDisplay
returnStartDir