diff --git a/matlab/TCV_IMAS/tcv_get_deploymentinfo.m b/matlab/TCV_IMAS/tcv_get_deploymentinfo.m index 0222db10ca255d269cca337b17ae6812d91254ba..f5562e1d9457e4c79a0992fc2b3ffdd98b186913 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