diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 79ecc2b1799132e3890d2924bf90ec8b46a64d01..641b05d1aa6efa03681708e5ed925eeb7d3e122c 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -96,7 +96,7 @@ switch options.Method currentPath = fullfile(storPath); %list all files - fList = dir(fullfile(storPath,DataFolderName, '**\*.*')); + fList = dir(fullfile(storPath,DataFolderName, ['**',filesep,'*.*'])); %get list of files and folders in any subfolder fList = fList(~[fList.isdir]); %remove folders from list fList = struct2table(fList); diff --git a/+PlotID/createLinkedHDF5.m b/+PlotID/createLinkedHDF5.m index 8fecfaed42b86014895c16a9bdd9a03eb554bec5..5a86201469989443a69be6c2f526189ef09a7aae 100644 --- a/+PlotID/createLinkedHDF5.m +++ b/+PlotID/createLinkedHDF5.m @@ -18,8 +18,8 @@ end fid = H5F.create(fullfile(TargetPath,ID,[filename,ext])); %create External Link to Sourcefile in the Group linkToExternal - H5L.create_external(['..\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); - %H5L.create_external(['..\data\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original + H5L.create_external(['..',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); + %H5L.create_external(['..',filesep,'data',filesep,SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original H5F.close(fid); disp([fullfile(TargetPath,ID,[filename,ext]),' created']); status = 1; diff --git a/CI_files/default_test.m b/CI_files/default_test.m index 505c360ea8fde4390434772eeece053120d15f0e..a67e7a3ca12fffc072eee99a0576019cbfb57afd 100644 --- a/CI_files/default_test.m +++ b/CI_files/default_test.m @@ -62,7 +62,7 @@ try delete CI_files/export/* CI_files/*.mat CI_files/*.h5 rmdir('CI_files/export','s'); - clear; clc; + clc; catch result = false; diff --git a/example.m b/example.m index 04aa8c11aebc102d0810c7e23681ad1ba473d943..4241d7d3a077b364c523c48f0ab6dc04fb1ce046 100644 --- a/example.m +++ b/example.m @@ -68,14 +68,14 @@ set(gca, 'TickDir', 'out', 'YLim', [0,4]); % The functions needs the file location of the script, the location of the % data and the figure and can take several options (see readme). -path.script = mfilename('fullpath'); % filename of the m.script +locations.script = mfilename('fullpath'); % filename of the m.script % file names of the datasets %(defined above:) dataset1 = 'test_data.mat'; dataset2 = 'testdata2.h5' -path.rdata = {dataset1,dataset2} ; % don't forget the extension +locations.rdata = {dataset1,dataset2} ; % don't forget the extension %call publishing -PlotID.Publish(path, ID, fig(1), 'Location', 'local' ,'Method','individual') +PlotID.Publish(locations, ID, fig(1), 'Location', 'local' ,'Method','individual') %% Example 2: multiple plots plot, all based on dataset2 (hdf5) % for individual data-sets, use an appropriate array