Skip to content
Snippets Groups Projects
Commit d5331b0b authored by M. Hock's avatar M. Hock
Browse files

Fixxing typos

Close #62
parent 57366050
No related branches found
No related tags found
2 merge requests!43Implements #73, cleans up example file,,!42Fixxing typos
Pipeline #596717 failed
......@@ -282,7 +282,7 @@ end
if status
disp(['publishing of ', ID , ' to ', newPath, ' done']); %always displayed onsucess
else % publish was not sucessfull!
else % publish was not successfull!
%replace with error from userDLG Class
dlgObj.error(['publishing of ', ID , ' failed'])
end
......
......@@ -72,7 +72,7 @@ try
msg =([type, ' successfully published']);
catch
status = false;
warning([type,' export was not sucessful'])
warning([type,' export was not successful'])
if exist('errorMSG')
error(errorMSG);
end
......
function [status] = createLinkedHDF5(SourceFile,TargetPath)
%createLinkedHDF5 creates a HDF file that references the Sourcefile
% TargetPath is the storage location, ID the foldername
% Status returns true if the function was sucessfull
% Status returns true if the function was successfull
plist_id = 'H5P_DEFAULT';
......
......@@ -20,14 +20,14 @@ try
rmdir(['CI_files' filesep 'export'],'s');
end
% initialise
% initialise
numberOfTests = 2;
testResults = zeros(numberOfTests,1);
%start log
fid = fopen(fullfile('CI_files','log.txt'),'w');
txt = ['default test started ' newline];
fprintf(fid,txt);
fprintf(fid,txt);
% create Config for CI-Tests
fid1 = fopen(fullfile('CI_files','CI_config.json'),'w');
......@@ -69,7 +69,7 @@ try
catch
testResults(1) = 1; %test fails
msg = 'simple_test failed in Stage 1';
warning(msg);
warning(msg);
end
fprintf(fid,[msg newline]);
......@@ -93,13 +93,13 @@ try
PlotID.Publish(rdata,script, figs, 'Location', 'CI-Test',...
'ConfigFileName', 'CI_config.json');
msg = 'simple_test succeed Stage 2';
msg = 'simple_test succeed Stage 2';
catch
testResults(2) = 1; %fail
msg = 'simple_test failed in Stage 2';
warning(msg);
warning(msg);
end
fprintf(fid,[msg newline]); %log
......@@ -107,15 +107,15 @@ fprintf(fid,[msg newline]); %log
if any(testResults)
result = 1; %fail
warning('test failed');
else
else
result = 0; % pass
disp('test succeed');
end
fclose(fid);
% final clean up
try
% final clean up
try
delete(['CI_files' filesep 'export' filesep '*']);
delete(['CI_files' filesep '*.mat']);
delete(['CI_files' filesep '*.h5']);
......
......@@ -93,7 +93,7 @@ An overview of all published plots and the associated data will be stored in a c
Creates a copy of the files (can be used for multiple paths in a cell array). folderName is the name of the exporting folder
## createLinkedHDF ()
`[status] = createLinkedHDF5(SourceFile,TargetPath,ID)` \
createLinkedHDF5 creates a HDF file that references the Sourcefile. TargetPath is the storage location, ID the foldername, Status returns true if the function was sucessfull.
createLinkedHDF5 creates a HDF file that references the Sourcefile. TargetPath is the storage location, ID the foldername, Status returns true if the function was successfull.
## fileCompare()
`[status, id] = fileCompare(filename,fileList)` \
fileCompare checks if file1 is (binary) identical to a file in filelist, it returns a sttus and the id of the identical file. The function uses the windows system function fc or the unix function diff (not tested).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment