From 4fb3d81f8435ad73e0b9e9426567b30494900cae Mon Sep 17 00:00:00 2001 From: Antonia Frank <antonia.frank@epfl.ch> Date: Tue, 15 Oct 2024 13:44:54 +0200 Subject: [PATCH] Make comments better --- matlab/TCV/gdat_tcv.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m index c41288d4..4885f998 100644 --- a/matlab/TCV/gdat_tcv.m +++ b/matlab/TCV/gdat_tcv.m @@ -2133,7 +2133,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') t1=sprintf('bad source for mhd: ''%s'', should be either ',gdat_data.gdat_params.source); t2=sprintf('''%s'', ',mhd_source_list{1:end-1}); t3=sprintf('or ''%s''',mhd_source_list{end}); - disp(sprintf('%s %s %s',t1,t2,t3)); + fprintf('%s %s %s\n',t1,t2,t3); return end else @@ -2144,11 +2144,11 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') z_axis_av = nanmean(z_axis.data(round(numel(z_axis.data)/3):round(numel(z_axis.data)*0.85))); end if z_axis_av > 0.12 - gdat_data.gdat_params.source = '23'; % zaxis +23cm + gdat_data.gdat_params.source = '23'; % probe array at z = +23cm elseif z_axis_av < -0.12 - gdat_data.gdat_params.source = '-23'; % zaxis -23cm + gdat_data.gdat_params.source = '-23'; % probe array at z = -23cm else - gdat_data.gdat_params.source = '0'; % zaxis = 0 + gdat_data.gdat_params.source = '0'; % probe array at z = 0cm end t1=sprintf('source set to ''%s'', can be ',gdat_data.gdat_params.source); t2=sprintf('''%s'', ',mhd_source_list{1:end-1}); @@ -2156,7 +2156,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') fprintf('%s %s %s',t1,t2,t3) end - % load data dependent on source + % load data dependent on requested source if numel(gdat_data.gdat_params.source)>=2 && strcmp(gdat_data.gdat_params.source(1:2),'23') aaLFSz23_sect3=tdi('\atlas::DT196_MHD_001:channel_067'); aaLFSz23_sect11=tdi('\atlas::DT196_MHD_001:channel_075'); -- GitLab