From 64d4abec685d40ddd2c10c2f9a224451d00c6035 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Mon, 28 Mar 2011 08:52:05 +0000 Subject: [PATCH] debug if vol is 'no data' and change prints git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@2638 d63d8f72-b253-0410-a779-e742ad2e26cf --- crpptbx/TCV/loadTCVdata.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/crpptbx/TCV/loadTCVdata.m b/crpptbx/TCV/loadTCVdata.m index 02f5cfa7..23e42333 100644 --- a/crpptbx/TCV/loadTCVdata.m +++ b/crpptbx/TCV/loadTCVdata.m @@ -361,7 +361,7 @@ if strcmp(data_type_eff(1:1),'\') error('in loadTCVdata') end else - index=strmatch(data_type_eff_noext,TCVkeywrdall,'exact') + index=strmatch(data_type_eff_noext,TCVkeywrdall,'exact'); if isempty(index) disp(' ') disp('********************') @@ -391,6 +391,8 @@ end status=ones(1,100); zmag=cell(0,0); nargineff=nargin; +disp('TCVsiglocation{index} in loadTCVdata') +TCVsiglocation{index} switch TCVkeywrdcase{index} @@ -416,14 +418,14 @@ switch TCVkeywrdcase{index} end if strcmp(TCVsiglocation{index}(1:9),'\psitbx::') begstr = 'tcv_psitbx("'; - nodenameeff=[begstr TCVsiglocation{index}(10:end) endstr] + nodenameeff=[begstr TCVsiglocation{index}(10:end) endstr]; elseif length(TCVsiglocation{index})>16 && strcmp(TCVsiglocation{index}(1:16),'\results::psitbx') begstr = 'tcv_psitbx("'; - nodenameeff=[begstr TCVsiglocation{index}(18:end) endstr] + nodenameeff=[begstr TCVsiglocation{index}(18:end) endstr]; elseif strcmp(TCVsiglocation{index}(1:10),'\results::') - nodenameeff=[begstr TCVsiglocation{index}(11:end) endstr] + nodenameeff=[begstr TCVsiglocation{index}(11:end) endstr]; else - nodenameeff=TCVsiglocation{index} + nodenameeff=TCVsiglocation{index}; disp(['should not have gone through here, mention this example to O. Sauter']); end tracetdi=tdi(nodenameeff); @@ -850,7 +852,7 @@ switch TCVkeywrdcase{index} end end trace.data=tracetdi.data; - if isempty(tracetdi.data) + if isempty(tracetdi.data) || ischar(tracetdi.data) trace.x=tracetdi.dim; trace.t=tracetdi.dim; trace.dim=tracetdi.dim; -- GitLab