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
461be957
Commit
461be957
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Plain Diff
Merge branch 'jan.lemmer-master-patch-87059' into 'master'
Bugfix See merge request
!46
parents
76144180
f34c70ca
No related branches found
No related tags found
1 merge request
!46
Bugfix
Pipeline
#601689
failed
3 years ago
Stage: Run
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
+PlotID/createLinkedHDF5.m
+10
-11
10 additions, 11 deletions
+PlotID/createLinkedHDF5.m
with
10 additions
and
11 deletions
+PlotID/createLinkedHDF5.m
+
10
−
11
View file @
461be957
function
[
status
]
=
createLinkedHDF5
(
SourceFile
,
TargetPath
,
ID
)
function
[
status
]
=
createLinkedHDF5
(
SourceFile
,
TargetPath
)
%createLinkedHDF5 creates a HDF file that references the Sourcefile
% TargetPath is the storage location, ID the foldername
% Status returns true if the function was successfull
...
...
@@ -12,21 +12,20 @@ end
[
~
,
filename
,
ext
]
=
fileparts
(
SourceFile
);
%
try
try
%old
%fid = H5F.create(fullfile(TargetPath,ID,[ID,'_data.h5']));
fid
=
H5F
.
create
(
fullfile
(
TargetPath
,
ID
,
[
filename
,
ext
]));
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
([
'..'
,
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'
]);
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
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