Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
154da536
Commit
154da536
authored
1 week ago
by
Luke Simons
Browse files
Options
Downloads
Patches
Plain Diff
Fixed pipeline. Added default empty return structure for tcv_get_deploymentinfo.m
parent
11b32feb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!171
Resolve "Add tcv_get_ids_bolometer to TCV_IMAS functions"
Pipeline
#253025
passed
1 week ago
Stage: test
Stage: post-test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/TCV_IMAS/tcv2ids.m
+15
-7
15 additions, 7 deletions
matlab/TCV_IMAS/tcv2ids.m
matlab/TCV_IMAS/tcv_get_deploymentinfo.m
+4
-0
4 additions, 0 deletions
matlab/TCV_IMAS/tcv_get_deploymentinfo.m
with
19 additions
and
7 deletions
matlab/TCV_IMAS/tcv2ids.m
+
15
−
7
View file @
154da536
...
@@ -118,15 +118,23 @@ for i=1:length(params_tcv2ids.ids_names)
...
@@ -118,15 +118,23 @@ for i=1:length(params_tcv2ids.ids_names)
ids_from_tcv
.
(
ids_to_get
)
=
tmp
.
(
ids_to_get
);
ids_from_tcv
.
(
ids_to_get
)
=
tmp
.
(
ids_to_get
);
ids_from_tcv
.
([
ids_to_get
'_description'
])
=
tmp
.
([
ids_to_get
'_description'
]);
ids_from_tcv
.
([
ids_to_get
'_description'
])
=
tmp
.
([
ids_to_get
'_description'
]);
% Retrieve versioning information from .this-deployment.info
% Retrieve versioning information from .this-deployment.info
if
~
isempty
(
ids_from_tcv
.
(
ids_to_get
)
.
code
.
name
)
for
ii
=
1
:
numel
(
ids_from_tcv
.
code
.
library
)
library_gitinfo
=
...
tcv_get_deploymentinfo
(
fullfile
(
fileparts
(
which
(
ids_from_tcv
.
(
ids_to_get
)
.
code
.
name
)),
'.this-deployment.info'
));
ids_from_tcv
.
(
ids_to_get
)
.
code
.
commit
=
library_gitinfo
.
git_commit
;
ids_from_tcv
.
(
ids_to_get
)
.
code
.
version
=
library_gitinfo
.
git_tag
;
ids_from_tcv
.
(
ids_to_get
)
.
code
.
repository
=
library_gitinfo
.
gitlab_project_url
;
end
for
ii
=
1
:
numel
(
ids_from_tcv
.
(
ids_to_get
)
.
code
.
library
)
if
~
isempty
(
ids_from_tcv
.
(
ids_to_get
)
.
code
.
library
{
ii
}
.
name
)
library_gitinfo
=
...
library_gitinfo
=
...
tcv_get_deploymentinfo
(
fullfile
(
fileparts
(
which
(
ids_from_tcv
_
.
code
.
library
{
ii
}
.
name
)),
'.this-deployment.info'
));
tcv_get_deploymentinfo
(
fullfile
(
fileparts
(
which
(
ids_from_tcv
.
(
ids_to_get
)
.
code
.
library
{
ii
}
.
name
)),
'.this-deployment.info'
));
ids_
bolometer
.
code
.
library
{
ii
}
.
commit
=
library_gitinfo
.
git_commit
;
ids_
from_tcv
.
(
ids_to_get
)
.
code
.
library
{
ii
}
.
commit
=
library_gitinfo
.
git_commit
;
ids_
bolometer
.
code
.
library
{
ii
}
.
version
=
library_gitinfo
.
git_tag
;
ids_
from_tcv
.
(
ids_to_get
)
.
code
.
library
{
ii
}
.
version
=
library_gitinfo
.
git_tag
;
ids_
bolometer
.
code
.
library
{
ii
}
.
repository
=
library_gitinfo
.
gitlab_project_url
;
ids_
from_tcv
.
(
ids_to_get
)
.
code
.
library
{
ii
}
.
repository
=
library_gitinfo
.
gitlab_project_url
;
end
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
matlab/TCV_IMAS/tcv_get_deploymentinfo.m
+
4
−
0
View file @
154da536
...
@@ -11,6 +11,10 @@ function info = tcv_get_deploymentinfo(function_name)
...
@@ -11,6 +11,10 @@ function info = tcv_get_deploymentinfo(function_name)
% Initialize output struct
% Initialize output struct
info
=
struct
();
info
=
struct
();
info
.
deployment_date
=
''
;
info
.
git_tag
=
''
;
info
.
git_commit
=
''
;
info
.
gitlab_project_url
=
''
;
try
try
filepath
=
fullfile
(
fileparts
(
which
(
function_name
)),
'.this-deployment.info'
);
filepath
=
fullfile
(
fileparts
(
which
(
function_name
)),
'.this-deployment.info'
);
info
.
repository
=
fileparts
(
filepath
);
info
.
repository
=
fileparts
(
filepath
);
...
...
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