Skip to content
Snippets Groups Projects

Fixed an error related to index table instead of structure. (publish/fileCompare)

Merged Hock, Martin requested to merge dev/fix/ntidy into development
5 files
+ 59
33
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 12
9
@@ -51,7 +51,7 @@ end
%% Research data handeling
switch options.Method
case 'centraliced' % Work in progresss!!!
%check if data folder exists
% check if data folder exists
if ~isfolder(fullfile(storPath,'data'))
mkdir(fullfile(storPath,'data'));
end
@@ -64,10 +64,13 @@ switch options.Method
% copy the data(once)
for i=1:numel(DataPaths.rdata)
% check if identical file exists (status = 1)
[status, idx] = fileCompare(DataPaths.rdata{i},fList);
if status
sourcePath = fList.name{idx};
createLinkedHDF5(sourcePath,storPath,ID);
[~, idx] = fileCompare(DataPaths.rdata{i},fList);
% create Linked HDF5 files for identical files
if any(idx)
sourcePath = fList.name{idx}; % If there are multiple copies already, this only picks the last entry
if contains(sourcePath,{'.h5','.hdf5'}) % Linking only for HDF5
createLinkedHDF5(sourcePath,storPath,ID);
end
else % no identical file exists
createFileCopy(DataPaths.rdata{i},'data',storPath,ID,'dataCentral');
end
@@ -77,7 +80,7 @@ switch options.Method
createFileCopy(DataPaths.rdata,folderName,storPath,ID, 'data');
end
%% Export the Plots
%try
try
for i=1:numel(figures)
fig = figures(i);
PlotName = [ID,'_plot',num2str(i)]; % Der Plotnamen
@@ -87,9 +90,9 @@ end
exportgraphics(fig,[RemotePath,'.png'],'Resolution',300);
disp([num2str(i),' of ',num2str(numel(figures)),' figures exported']);
end
%catch
%warning('Plot export was not sucessful')
%end
catch
warning('Plot export was not successful')
end
disp(['publishing of ', ID , ' done']);
Loading