Changeset 451 for trunk/src/series/check_data_files.m
- Timestamp:
- Jun 12, 2012, 12:29:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/check_data_files.m
r447 r451 114 114 Tabchar=message; 115 115 else 116 datnum=zeros(1,nbfield);117 116 Tabchar={}; 118 117 %LOOP ON SLICES … … 120 119 index_slice=i_slice:NbSlice:nbfield; 121 120 filefound={}; 121 datnum=zeros(1,nbfield_j); 122 122 for ifile=1:nbfield_i 123 % index(ifile)=index_slice(ifile);124 123 stopstate=get(hseries.RUN,'BusyAction'); 125 124 if isequal(stopstate,'queue')% enable STOP command … … 129 128 detect=exist(file,'file'); % check the existence of the file 130 129 if detect==0 131 count=count+1;130 % count=count+1; 132 131 lastfield='not found'; 133 132 else … … 135 134 if isfield(datfile,'datenum') 136 135 datnum(ifile)=datfile.datenum; 137 end138 filefound(ifile)={datfile.name};136 filefound(ifile)={datfile.name}; 137 end 139 138 lastfield=''; 140 139 [FileType,FileInfo,Object]=get_file_type(file); … … 152 151 end 153 152 end 154 % if isempty(datnum)||isempty(filefound)155 153 if isempty(filefound) 156 154 if NbSlice>1 … … 161 159 else 162 160 datnum=datnum(find(datnum));%keep the non zero values corresponding to existing files 161 filefound=filefound(find(datnum)); 163 162 [first,ind]=min(datnum); 164 163 [last,indlast]=max(datnum); 165 message={['oldest modification: ' cell2mat(filefound(ind))' : ' datestr(first)];...166 ['latest modification: ' cell2mat(filefound(indlast))' : ' datestr(last)]};164 message={['oldest modification: ' filefound{ind} ' : ' datestr(first)];... 165 ['latest modification: ' filefound{indlast} ' : ' datestr(last)]}; 167 166 end 168 167 if ~isempty(Tabchar)
Note: See TracChangeset
for help on using the changeset viewer.