Skip to content
Snippets Groups Projects
Commit 11b32feb authored by Luke Simons's avatar Luke Simons
Browse files

Changed tcv_get_deploymentinfo to take function name

parent 1d974e88
No related branches found
No related tags found
1 merge request!171Resolve "Add tcv_get_ids_bolometer to TCV_IMAS functions"
Checking pipeline status
function info = tcv_get_deploymentinfo(filepath) function info = tcv_get_deploymentinfo(function_name)
% Reads a deployment info file and extracts relevant details % Reads a deployment info file and extracts relevant details
% Author: L. Simons % Author: L. Simons
% Date: 07/03/25 % Date: 07/03/25
% %
% Args: % Args:
% filepath: Path to the text file % function_name: String, name of function
% %
% Returns: % Returns:
% info: Struct containing extracted information % info: Struct containing extracted information
...@@ -12,7 +12,7 @@ function info = tcv_get_deploymentinfo(filepath) ...@@ -12,7 +12,7 @@ function info = tcv_get_deploymentinfo(filepath)
% Initialize output struct % Initialize output struct
info = struct(); info = struct();
try try
filepath=fullfile(fileparts(which(filepath)),'.this-deployment.info'); filepath=fullfile(fileparts(which(function_name)),'.this-deployment.info');
info.repository=fileparts(filepath); info.repository=fileparts(filepath);
% Check if file exists % Check if file exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment