Ignore:
Timestamp:
Mar 25, 2013, 6:34:00 PM (11 years ago)
Author:
sommeria
Message:

commit the series fcts with the new form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/check_peaklock.m

    r590 r592  
    192192                break
    193193            end
    194             if ~isempty(NbSlice_calib)
    195                 Data{iview}.ZIndex=mod(i1_series{iview}(index)-1,NbSlice_calib{iview})+1;%Zindex for phys transform
    196             end
    197194        end
    198195        if isempty(errormsg)
     
    209206                end
    210207            end
    211             nbfile=nbfile+1;
    212208           
    213209            % initiate the time series at the first iteration
    214             if nbfile==1
     210            if index==1
    215211                % stop program if the first field reading is in error
    216212                if ~isempty(errormsg)
     
    287283                end
    288284            end
    289            
    290             % record the time:
    291             if isempty(time)% time not set by xml filer(s)
    292                 if isfield(Data{1},'Time')
    293                     DataOut.Time(nbfile,1)=Field.Time;
    294                 else
    295                     DataOut.Time(nbfile,1)=index;%default
    296                 end
    297             else % time from ImaDoc prevails  TODO: correct
    298                 DataOut.Time(nbfile,1)=time(index);%
    299             end
    300            
    301             % record the number of missing input fields
    302             if ~isempty(errormsg)
    303                 nbmissing=nbmissing+1;
    304                 display(['index=' num2str(index) ':' errormsg])
    305             end
     285
    306286        end
    307287    end
Note: See TracChangeset for help on using the changeset viewer.