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) function [status] = createLinkedHDF5(SourceFile,TargetPath)
%createLinkedHDF5 creates a HDF file that references the Sourcefile %createLinkedHDF5 creates a HDF file that references the Sourcefile
% TargetPath is the storage location, ID the foldername % 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'; plist_id = 'H5P_DEFAULT';
......
...@@ -20,14 +20,14 @@ try ...@@ -20,14 +20,14 @@ try
rmdir(['CI_files' filesep 'export'],'s'); rmdir(['CI_files' filesep 'export'],'s');
end end
% initialise % initialise
numberOfTests = 2; numberOfTests = 2;
testResults = zeros(numberOfTests,1); testResults = zeros(numberOfTests,1);
%start log %start log
fid = fopen(fullfile('CI_files','log.txt'),'w'); fid = fopen(fullfile('CI_files','log.txt'),'w');
txt = ['default test started ' newline]; txt = ['default test started ' newline];
fprintf(fid,txt); fprintf(fid,txt);
% create Config for CI-Tests % create Config for CI-Tests
fid1 = fopen(fullfile('CI_files','CI_config.json'),'w'); fid1 = fopen(fullfile('CI_files','CI_config.json'),'w');
...@@ -69,7 +69,7 @@ try ...@@ -69,7 +69,7 @@ try
catch catch
testResults(1) = 1; %test fails testResults(1) = 1; %test fails
msg = 'simple_test failed in Stage 1'; msg = 'simple_test failed in Stage 1';
warning(msg); warning(msg);
end end
fprintf(fid,[msg newline]); fprintf(fid,[msg newline]);
...@@ -93,13 +93,13 @@ try ...@@ -93,13 +93,13 @@ try
PlotID.Publish(rdata,script, figs, 'Location', 'CI-Test',... PlotID.Publish(rdata,script, figs, 'Location', 'CI-Test',...
'ConfigFileName', 'CI_config.json'); 'ConfigFileName', 'CI_config.json');
msg = 'simple_test succeed Stage 2'; msg = 'simple_test succeed Stage 2';
catch catch
testResults(2) = 1; %fail testResults(2) = 1; %fail
msg = 'simple_test failed in Stage 2'; msg = 'simple_test failed in Stage 2';
warning(msg); warning(msg);
end end
fprintf(fid,[msg newline]); %log fprintf(fid,[msg newline]); %log
...@@ -107,15 +107,15 @@ fprintf(fid,[msg newline]); %log ...@@ -107,15 +107,15 @@ fprintf(fid,[msg newline]); %log
if any(testResults) if any(testResults)
result = 1; %fail result = 1; %fail
warning('test failed'); warning('test failed');
else else
result = 0; % pass result = 0; % pass
disp('test succeed'); disp('test succeed');
end end
fclose(fid); fclose(fid);
% final clean up % final clean up
try try
delete(['CI_files' filesep 'export' filesep '*']); delete(['CI_files' filesep 'export' filesep '*']);
delete(['CI_files' filesep '*.mat']); delete(['CI_files' filesep '*.mat']);
delete(['CI_files' filesep '*.h5']); 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 ...@@ -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 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 () ## createLinkedHDF ()
`[status] = createLinkedHDF5(SourceFile,TargetPath,ID)` \ `[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() ## fileCompare()
`[status, id] = fileCompare(filename,fileList)` \ `[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). 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