From d31b50744807dc9c73594b736d7c9f7cced3bdb5 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Wed, 24 Apr 2019 14:28:12 +0000 Subject: [PATCH] small fix for code.name git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11792 d63d8f72-b253-0410-a779-e742ad2e26cf --- crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m b/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m index 17eb3faf..6668273e 100644 --- a/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m +++ b/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m @@ -186,7 +186,11 @@ for it=1:length(ids_cores_profiles.time) .* dqdrhotor; end -ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) '; varargin' varargin{:}]; +if nargin <= 2 + ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) ]; +else + ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) '; varargin: ' varargin{:}]; +end ids_cores_profiles.code.output_flag = zeros(size(ids_cores_profiles.time)); % make arrays not filled in empty: -- GitLab