Ignore:
Timestamp:
Nov 29, 2018, 5:44:44 PM (5 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

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

    r1051 r1059  
    186186%      nbfield2=size(time,1);
    187187checkpreserve=0;% if =1, will npreserve the original images, else it erases them at the end
     188
    188189for iview=1:size(Param.InputTable,1)
     190    check_xml=0;
    189191    for iview_xml=1:size(Param.InputTable,1)% look for the xml files in the different data directories
    190192        filexml=[fullfile(RootPath,Param.InputTable{iview_xml,2},Param.InputTable{iview,3}) '.xml'];%new convention: xml at the level of the image folder
    191193        if exist(filexml,'file')
     194            check_xml=1;
    192195            break
    193196        end
    194197    end
    195     if ~exist(filexml,'file')
    196         disp_uvmat('ERROR',[filexml ' missing'],checkrun)
    197         return
    198     end
    199  
     198    %     if ~exist(filexml,'file')
     199    %         disp_uvmat('ERROR',[filexml ' missing'],checkrun)
     200    %         return
     201    %     end
     202    
    200203    newxml=fullfile(RootPath,Param.InputTable{iview,3});
    201204    newxml=regexprep(newxml,'_Master_Dalsa_4M180$','');%suppress '_Master_Dalsa_4M180'
     
    211214            [success,errormsg] = copyfile(filename_seq,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.seq']); %copy the seq file in the upper folder
    212215            [success,errormsg] = copyfile(filename_sqb,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.sqb']); %copy the sqb file in the upper folder
     216            if check_xml
    213217            [success,errormsg] = copyfile(filexml,[fullfile(RootPath,logdir,Param.InputTable{iview,3}) '.xml']); %copy the original xml file in the upper folder
     218            end
    214219        otherwise
    215220            errormsg='input file extension must be .seq or .sqb';
Note: See TracChangeset for help on using the changeset viewer.