Changeset 384 for trunk/src/find_file_series.m
- Timestamp:
- Mar 11, 2012, 11:47:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_file_series.m
r379 r384 63 63 RootFile=''; 64 64 end 65 else 65 else 66 %% possibly include the first index in the root name, if there exists a corresponding xml file 67 NomTypePref=''; 68 RootFileNew=RootFile; 69 if ~isempty(regexp(NomType,['^_'])) 70 NomTypePref='_'; 71 RootFileNew=[RootFileNew '_']; 72 end 73 r=regexp(NomType,['^' NomTypePref '(?<num1>\d+)'],'names');%look for a number at the beginning of NomTypeSt 74 if ~isempty(r) 75 NomTypePref=[NomTypePref r.num1]; 76 fileinput_end=regexprep(fileinput,['^' RootFileNew],''); 77 r=regexp(fileinput_end,'^(?<num1>\d+)','names'); 78 if ~isempty(r) 79 RootFileNew=[RootFileNew r.num1]; 80 end 81 if exist(fullfile(RootPath,[RootFileNew '.xml']),'file') 82 RootFile=RootFileNew; 83 NomType=regexprep(NomType,['^' NomTypePref],''); 84 i2_input=j2_input; 85 j1_input=[]; 86 j2_input=[]; 87 end 88 end 66 89 %% analyse the list of existing files when relevant 67 90 sep1=''; … … 205 228 else 206 229 [tild,tild,tild,tild,tild,tild,tild,tild,NomType]=fileparts_uvmat(dirpair(ifile_min).name);% update the representation of indices (number of 0 before the number) 230 NomType=regexprep(NomType,['^' NomTypePref],''); 207 231 end 208 232 end
Note: See TracChangeset
for help on using the changeset viewer.