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
cd3be8cc
Commit
cd3be8cc
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Small changes in CSV export
parent
774ecef2
No related branches found
No related tags found
2 merge requests
!43
Implements #73, cleans up example file,
,
!36
Resolve "Initialise: Angabe des Ordners ohne Effekt"
Pipeline
#592887
passed
3 years ago
Stage: Run
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
+PlotID/Publish.m
+14
-12
14 additions, 12 deletions
+PlotID/Publish.m
with
14 additions
and
12 deletions
+PlotID/Publish.m
+
14
−
12
View file @
cd3be8cc
...
...
@@ -102,7 +102,7 @@ switch options.Location
storPath
=
configObj
.
exportPath
;
else
msg
=
[
'Your Export folder '
,
storPath
,
newline
,
...
'does not exist - publishing not possible'
];
'does not exist
, check the config file
- publishing not possible
!
'
];
dlgObj
.
error
(
msg
);
end
case
'server'
%legacy
...
...
@@ -245,17 +245,6 @@ catch
dlgObj
.
softError
(
'Plot export was not successful'
);
end
% CSV EXport
if
options
.
CSV
T
=
table
();
T
.
research_Data
=
DataPaths
'
;
T
.
PlotID
(:)
=
{
ID
};
T
.
Script_Name
(:)
=
{
scriptPath
};
T
.
Storage_Location
(:)
=
{
storPath
};
T
.
Date
(:)
=
{
datestr
(
now
)};
T
=
movevars
(
T
,
'PlotID'
,
'before'
,
1
);
writetable
(
T
,
fullfile
(
storPath
,
'overview_table.csv'
),
'WriteMode'
,
'append'
);
end
%% final renaming and error/warning handeling
% if no error orcurred or if force publish is activated, rename the hidden
% folder to a non hidden one, otherwise delete it.
...
...
@@ -269,6 +258,19 @@ if dlgObj.success || options.ForcePublish
status
=
movefile
(
oldPath
,
newPath
);
%rename directory
end
%% CSV EXport
% ToDo exclude in function
if
options
.
CSV
T
=
table
();
T
.
research_Data
=
DataPaths
'
;
T
.
PlotID
(:)
=
{
ID
};
T
.
Author
(:)
=
{
configObj
.
configData
.
Author
};
T
.
Script_Name
(:)
=
{
scriptPath
};
T
.
Storage_Location
(:)
=
{
newPath
};
T
.
Date
(:)
=
{
datestr
(
now
)};
T
=
movevars
(
T
,{
'PlotID'
,
'Author'
},
'before'
,
1
);
writetable
(
T
,
fullfile
(
storPath
,
'PlotID_overview.csv'
),
'WriteMode'
,
'append'
);
end
if
status
disp
([
'publishing of '
,
ID
,
' to '
,
newPath
,
' done'
]);
%always displayed onsucess
else
% publish was not sucessfull!
...
...
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