Changeset 1191 for trunk/src/get_file_info.m
- Timestamp:
- Feb 6, 2026, 5:13:05 PM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/src/get_file_info.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r1181 r1191 153 153 XmlFile=fullfile(RootPath,[SubDir '.xml']); 154 154 CheckWriteImaDoc=true; 155 if exist(XmlFile,'file')156 [XmlData,~,errormsg]=xml2struct(XmlFile);157 if ~isempty(errormsg)158 disp(errormsg)159 FileInfo.FileType='error';160 return161 elseif isfield(XmlData,'FileSeries')162 CheckWriteImaDoc=false;163 end164 end165 if CheckWriteImaDoc166 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 end175 end176 FileSeries.NbFramePerFile=FileInfo.NumberOfFrames;177 [checkupdate,xmlfile,errormsg]=update_imadoc(RootPath,SubDir,'FileSeries',FileSeries);178 end155 % 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 179 179 180 180 otherwise
Note: See TracChangeset
for help on using the changeset viewer.
