Rename scansDir
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
%% CALLED BY EASYconsole.m %%
|
||||
% Updated 240724 Bryan C Roessler to improve file operations and portability
|
||||
%
|
||||
global scansDir
|
||||
global projectScansDir
|
||||
global matFile
|
||||
global defImParMat
|
||||
global printResultsDir
|
||||
@@ -46,16 +46,16 @@ for n=1:size(scan,2)
|
||||
end
|
||||
end
|
||||
|
||||
% if length(scansDir) == max(strfind(scansDir,'\'))
|
||||
% localscansDir=scansDir(1:end-1);
|
||||
% if length(projectScansDir) == max(strfind(projectScansDir,'\'))
|
||||
% localprojectScansDir=projectScansDir(1:end-1);
|
||||
% else
|
||||
% localscansDir=scansDir;
|
||||
% localprojectScansDir=projectScansDir;
|
||||
% end
|
||||
|
||||
% TODO this seems weird
|
||||
expNm=scansDir(max(strfind(scansDir,'/'))+1:end);
|
||||
drivePos=min(strfind(scansDir,'/'));
|
||||
drive=scansDir(1:(drivePos-1));
|
||||
expNm=projectScansDir(max(strfind(projectScansDir,'/'))+1:end);
|
||||
drivePos=min(strfind(projectScansDir,'/'));
|
||||
drive=projectScansDir(1:(drivePos-1));
|
||||
DBupload=fullfile(drive,'EZdbFiles','DBupLOADfiles');
|
||||
|
||||
% Added to allow backward compatability
|
||||
@@ -75,7 +75,7 @@ if isequal(opt,'DB')||isequal(opt,'Both'),fid2=fopen(DBfilename,'w');end
|
||||
|
||||
if isequal(opt,'Res')||isequal(opt,'Both')
|
||||
fprintf(fid,'%d\t',ln); % Results header
|
||||
fprintf(fid,'%s\t\n',scansDir);
|
||||
fprintf(fid,'%s\t\n',projectScansDir);
|
||||
ln=ln+1;
|
||||
fprintf(fid,'%d\t',ln);
|
||||
end
|
||||
@@ -383,7 +383,7 @@ try
|
||||
if isequal(opt,'DB')||isequal(opt,'Both'),fid2=fopen(DBfilename,'w');end %121012 Combo
|
||||
if isequal(opt,'Res')||isequal(opt,'Both') %print Results
|
||||
fprintf(fid,'%d\t',ln); %Results header
|
||||
fprintf(fid,'%s\t\n',scansDir);
|
||||
fprintf(fid,'%s\t\n',projectScansDir);
|
||||
ln=ln+1;
|
||||
fprintf(fid,'%d\t',ln);
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user