First EZview test

This commit is contained in:
2024-07-29 17:26:51 -04:00
parent 5e0af19181
commit 78f33a0120
77 changed files with 1669 additions and 45679 deletions

View File

@@ -31,9 +31,9 @@ function varargout = EASYconsole(varargin)
dt=datetime;
todayStr=char(dt, 'yyyyMMdd'); % This should match the parent workflow script
demo=1;
if demo
disp('Running in demo mode');
debug=1;
if debug
disp('Running in debug mode');
disp('Initialized variables:');
whos;
end
@@ -61,7 +61,8 @@ function varargout = EASYconsole(varargin)
fullfile('/mnt/data/ExpJobs'),
fullfile(parentDir, '..', '..', 'templates', 'scans-demo')
};
for d=dirsToScan
for i=1:length(dirsToScan)
d=dirsToScan(i);
if exist(d, 'dir')
subDirs=dir(d);
if ~isempty(subDirs)
@@ -76,7 +77,7 @@ function varargout = EASYconsole(varargin)
end
end
% Sanity check and warning
% User sanity check and warning
if exist('PROJECT_USER', 'var') && ~isempty(getenv('PROJECT_USER'))
if ~equal(getenv('PROJECT_USER'), userName)
disp("WARNING: PROJECT_USER does not match the current namespace");
@@ -178,7 +179,7 @@ function varargout = EASYconsole(varargin)
mpdmFile=fullfile(matDir,'MPDM.mat');
% Decent time to print some helpful vars
if demo
if debug
disp('Vars at end of main loop:')
whos;
end