Skip to content
Snippets Groups Projects
Commit 790ce9bf authored by Hock, Martin's avatar Hock, Martin
Browse files

Merge branch 'sync-link-hdf5' into 'master'

get file from development onto master, createLinkedHDF5.m

See merge request !67
parents ef10ab81 f44923c5
No related branches found
No related tags found
2 merge requests!69Fix/centralizedonlinux,!67get file from development onto master, createLinkedHDF5.m
Pipeline #657183 passed
...@@ -12,17 +12,18 @@ end ...@@ -12,17 +12,18 @@ end
[~,filename,ext] = fileparts(SourceFile); [~,filename,ext] = fileparts(SourceFile);
try % try
fid = H5F.create(fullfile(TargetPath,[filename,ext])); fid = H5F.create(fullfile(TargetPath,[filename,ext]));
%create External Link to Sourcefile in the Group linkToExternal %create External Link to Sourcefile in the Group linkToExternal
H5L.create_external(['..',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); H5L.create_external(['..\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
%H5L.create_external(['..',filesep,'data',filesep,SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original %H5L.create_external(['..\data\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original
H5F.close(fid); H5F.close(fid);
disp([fullfile(TargetPath,[filename,ext]),' created']); disp([fullfile(TargetPath,[filename,ext]),' created']);
status = 1; status = 1;
catch % catch
warning('No linked HDF file was created'); % warning('No linked HDF file was created');
status = 0; % status = 0;
end % end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment