From 11b32feb316ca50c77d7b7d88c25ceef3413b0fe Mon Sep 17 00:00:00 2001 From: Luke Simons <luke.simons@epfl.ch> Date: Fri, 7 Mar 2025 18:09:04 +0100 Subject: [PATCH] Changed tcv_get_deploymentinfo to take function name --- matlab/TCV_IMAS/tcv_get_deploymentinfo.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/TCV_IMAS/tcv_get_deploymentinfo.m b/matlab/TCV_IMAS/tcv_get_deploymentinfo.m index 0222db1..f5562e1 100644 --- a/matlab/TCV_IMAS/tcv_get_deploymentinfo.m +++ b/matlab/TCV_IMAS/tcv_get_deploymentinfo.m @@ -1,10 +1,10 @@ -function info = tcv_get_deploymentinfo(filepath) +function info = tcv_get_deploymentinfo(function_name) % Reads a deployment info file and extracts relevant details % Author: L. Simons % Date: 07/03/25 % % Args: - % filepath: Path to the text file + % function_name: String, name of function % % Returns: % info: Struct containing extracted information @@ -12,7 +12,7 @@ function info = tcv_get_deploymentinfo(filepath) % Initialize output struct info = struct(); try - filepath=fullfile(fileparts(which(filepath)),'.this-deployment.info'); + filepath=fullfile(fileparts(which(function_name)),'.this-deployment.info'); info.repository=fileparts(filepath); % Check if file exists -- GitLab