Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
fb67ed5f
Commit
fb67ed5f
authored
3 years ago
by
M. Hock
Browse files
Options
Downloads
Patches
Plain Diff
adjusted ObjectName used to create the link to not be a unix path
parent
5e74174e
No related branches found
No related tags found
2 merge requests
!73
Docs/minimalexampleinreadme
,
!69
Fix/centralizedonlinux
Pipeline
#657759
passed
3 years ago
Stage: Testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
+PlotID/createLinkedHDF5.m
+8
-2
8 additions, 2 deletions
+PlotID/createLinkedHDF5.m
with
8 additions
and
2 deletions
+PlotID/createLinkedHDF5.m
+
8
−
2
View file @
fb67ed5f
...
...
@@ -12,11 +12,17 @@ end
[
~
,
filename
,
ext
]
=
fileparts
(
SourceFile
);
% create GroupName to avoid internal path issues on linux/unix systems
GroupName
=
split
(
SourceFile
,
filesep
);
% Using windows fileseperator for the object name
GroupName
=
join
(
GroupName
,
'\'
);
GroupName
=
GroupName
{:};
try
fid
=
H5F
.
create
(
fullfile
(
TargetPath
,[
filename
,
ext
]));
%create External Link to Sourcefile in the Group linkToExternal
H5L
.
create_external
([
'..'
,
SourceFile
],
'/'
,
fid
,
SourceFil
e
,
plist_id
,
plist_id
);
%H5L.create_external(['..,filesep,'data',SourceFile],'/',fid,
SourceFil
e ,plist_id,plist_id); %original
H5L
.
create_external
([
'..'
,
SourceFile
],
'/'
,
fid
,
GroupNam
e
,
plist_id
,
plist_id
);
%H5L.create_external(['..,filesep,'data',SourceFile],'/',fid,
GroupNam
e ,plist_id,plist_id); %original
H5F
.
close
(
fid
);
disp
([
fullfile
(
TargetPath
,[
filename
,
ext
]),
' created'
]);
status
=
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment