Skip to content
Snippets Groups Projects
Commit 85ea29cd authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Merge branch 'dev/typos' into 'development'

Fixxing typos

See merge request !42
parents c6e40bc5 f1f20e81
Branches
Tags
2 merge requests!43Implements #73, cleans up example file,,!42Fixxing typos
Pipeline #597469 passed
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']);
......
......@@ -97,7 +97,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