From 413786feb8f86ed260158961f5a2172f5ffd5c08 Mon Sep 17 00:00:00 2001
From: "M. Hock" <martin.hock@fst.tu-darmstadt.de>
Date: Mon, 28 Feb 2022 19:22:25 +0100
Subject: [PATCH] adjusting changes since checkout and merge did not give
 wanted result, also adjusted comment

---
 +PlotID/createLinkedHDF5.m | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/+PlotID/createLinkedHDF5.m b/+PlotID/createLinkedHDF5.m
index 46dacbd..ffdffef 100644
--- a/+PlotID/createLinkedHDF5.m
+++ b/+PlotID/createLinkedHDF5.m
@@ -12,18 +12,17 @@ end
 
 [~,filename,ext] = fileparts(SourceFile);
 
-% try    
+try
     fid = H5F.create(fullfile(TargetPath,[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(['..',filesep,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,[filename,ext]),' created']);
     status = 1;
-% catch
-%     warning('No linked HDF file was created');
-%     status = 0;
-% end
-
+catch
+    warning('No linked HDF file was created');
+    status = 0;
 end
 
+end
-- 
GitLab