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
86670bb4
Commit
86670bb4
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/centralizedonlinux' into 'development'
Fix/centralizedonlinux See merge request
!69
parents
9b2f6c3c
fb67ed5f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!73
Docs/minimalexampleinreadme
,
!69
Fix/centralizedonlinux
Pipeline
#659751
passed
3 years ago
Stage: Testing
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
+PlotID/Publish.m
+5
-0
5 additions, 0 deletions
+PlotID/Publish.m
+PlotID/createLinkedHDF5.m
+8
-2
8 additions, 2 deletions
+PlotID/createLinkedHDF5.m
Examples/PlotID_centralized.m
+4
-4
4 additions, 4 deletions
Examples/PlotID_centralized.m
with
17 additions
and
6 deletions
+PlotID/Publish.m
+
5
−
0
View file @
86670bb4
...
@@ -46,6 +46,11 @@ if isstring(scriptPath)
...
@@ -46,6 +46,11 @@ if isstring(scriptPath)
scriptPath
=
char
(
scriptPath
);
scriptPath
=
char
(
scriptPath
);
end
end
% ensure ParentFolder has no trailing fileseperator
if
contains
(
options
.
ParentFolder
(
end
),
filesep
)
options
.
ParentFolder
(
end
)
=
''
;
end
%catch multiple figures in fig
%catch multiple figures in fig
if
numel
(
figure
)
>
1
if
numel
(
figure
)
>
1
figure
=
figure
(
1
);
figure
=
figure
(
1
);
...
...
This diff is collapsed.
Click to expand it.
+PlotID/createLinkedHDF5.m
+
8
−
2
View file @
86670bb4
...
@@ -12,11 +12,17 @@ end
...
@@ -12,11 +12,17 @@ end
[
~
,
filename
,
ext
]
=
fileparts
(
SourceFile
);
[
~
,
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
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
([
'..'
,
filesep
,
SourceFile
],
'/'
,
fid
,
SourceFil
e
,
plist_id
,
plist_id
);
H5L
.
create_external
([
'..'
,
SourceFile
],
'/'
,
fid
,
GroupNam
e
,
plist_id
,
plist_id
);
%H5L.create_external(['..,filesep,'data',
filesep,
SourceFile],'/',fid,
SourceFil
e ,plist_id,plist_id); %original
%H5L.create_external(['..,filesep,'data',SourceFile],'/',fid,
GroupNam
e ,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
;
...
...
This diff is collapsed.
Click to expand it.
Examples/PlotID_centralized.m
+
4
−
4
View file @
86670bb4
...
@@ -25,9 +25,9 @@ plot(x.^2,y,'-r');
...
@@ -25,9 +25,9 @@ plot(x.^2,y,'-r');
PlotID
.
Publish
(
datapath
,
scriptPath
,
fig2
,
'Method'
,
'centralized'
)
PlotID
.
Publish
(
datapath
,
scriptPath
,
fig2
,
'Method'
,
'centralized'
)
%% Note:
%% Note:
% If you rerun this script PlotId will tell you that a identical named (but
% If you rerun this script PlotId will tell you that a
n
identical
ly
named (but
% not binary idetical) file exists in the data folder. This is intended
,
% not binary ide
n
tical) file exists in the data folder. This is intended
%
due
protect the user from overwritting non (binary) identical files. The
%
to
protect the user from overwritting non (binary) identical files. The
% reason for this is that two hdf files with the same data are not idetical
% reason for this is that two hdf files with the same data are not ide
n
tical
% when recreated (see line 11). Usually you would use an existing file
% when recreated (see line 11). Usually you would use an existing file
% without changing it.
% without changing it.
\ No newline at end of file
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