diff --git a/+PlotID/createLinkedHDF5.m b/+PlotID/createLinkedHDF5.m index 8807977d929aed8af169a866c4ba4aa329fda8d4..69b905d877dc7b11fd1a82c5d39bf6701cbfb61c 100644 --- a/+PlotID/createLinkedHDF5.m +++ b/+PlotID/createLinkedHDF5.m @@ -1,7 +1,7 @@ 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'; diff --git a/CI_files/default_test.m b/CI_files/default_test.m index f6c7309d399deaa2453cf51045d5970073da8ba8..726c59ad33b93aa35ee1e1300eceadbfe322a5d8 100644 --- a/CI_files/default_test.m +++ b/CI_files/default_test.m @@ -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']); diff --git a/README.md b/README.md index 340377aba750971e229a09430defcc4dc614f008..929ac878932aafd14616caa66ecc8e6cfceb1796 100644 --- a/README.md +++ b/README.md @@ -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).