Ignore:
Timestamp:
Feb 6, 2026, 5:13:05 PM (2 weeks ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_file_info.m

    r1181 r1191  
    153153        XmlFile=fullfile(RootPath,[SubDir '.xml']);
    154154        CheckWriteImaDoc=true;
    155         if exist(XmlFile,'file')
    156             [XmlData,~,errormsg]=xml2struct(XmlFile);
    157             if ~isempty(errormsg)
    158                 disp(errormsg)
    159                 FileInfo.FileType='error';
    160                 return
    161             elseif isfield(XmlData,'FileSeries')
    162                 CheckWriteImaDoc=false;
    163             end
    164         end
    165         if CheckWriteImaDoc
    166             DirContent=dir(Path);
    167             NbFiles=0;
    168             FileSeries.Convention='telopsIR';
    169             for ilist=1:numel(DirContent)
    170                 FName=DirContent(ilist).name;
    171                 if ~isempty(regexp(FName,'.hcc$', 'once'))
    172                     NbFiles=NbFiles+1;
    173                     FileSeries.FileName{NbFiles,1}=FName;
    174                 end
    175             end
    176             FileSeries.NbFramePerFile=FileInfo.NumberOfFrames;
    177             [checkupdate,xmlfile,errormsg]=update_imadoc(RootPath,SubDir,'FileSeries',FileSeries);
    178         end
     155%         if exist(XmlFile,'file')
     156%             [XmlData,~,errormsg]=xml2struct(XmlFile);
     157%             if ~isempty(errormsg)
     158%                 disp(errormsg)
     159%                 FileInfo.FileType='error';
     160%                 return
     161%             elseif isfield(XmlData,'FileSeries')
     162%                 CheckWriteImaDoc=false;
     163%             end
     164%         end
     165%         if CheckWriteImaDoc
     166%             DirContent=dir(Path);
     167%             NbFiles=0;
     168%             FileSeries.Convention='telopsIR';
     169%             for ilist=1:numel(DirContent)
     170%                 FName=DirContent(ilist).name;
     171%                 if ~isempty(regexp(FName,'.hcc$', 'once'))
     172%                     NbFiles=NbFiles+1;
     173%                     FileSeries.FileName{NbFiles,1}=FName;
     174%                 end
     175%             end
     176%             FileSeries.NbFramePerFile=FileInfo.NumberOfFrames;
     177%             [checkupdate,xmlfile,errormsg]=update_imadoc(RootPath,SubDir,'FileSeries',FileSeries);
     178%         end
    179179
    180180    otherwise
Note: See TracChangeset for help on using the changeset viewer.