Changeset 340 for trunk/src/series/check_data_files.m
- Timestamp:
- Dec 19, 2011, 10:13:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/check_data_files.m
r330 r340 49 49 50 50 % number of slices 51 NbSlice=str2num(get(hseries.NbSlice,'String'));52 if isempty(NbSlice)53 NbSlice=1;54 end 55 NbSlice_name=num2str( NbSlice);51 % NbSlice=str2num(get(hseries.NbSlice,'String')); 52 % if isempty(NbSlice) 53 % NbSlice=1; 54 NbSlice=Series.IndexRange.NbSlice 55 NbSlice_name=num2str(Series.IndexRange.NbSlice); 56 56 if isequal(NbSlice,[]),NbSlice=1; end; %default 57 57 … … 95 95 indselect(:,ifield)=((ifield-1)*NbSlice+(i_slice-1))*nbfield2+[1:nbfield2]';%selected indices on the list of files of a slice 96 96 end 97 filefound={}; 97 98 for index=1:nbfield*nbfield2 98 99 stopstate=get(hseries.RUN,'BusyAction'); 99 100 if isequal(stopstate,'queue')% enable STOP command 100 update_waitbar(hseries.waitbar ,WaitbarPos,index/(nbfield*nbfield2))101 update_waitbar(hseries.waitbar_frame,WaitbarPos,index/(nbfield*nbfield2)) 101 102 ifile=indselect(index); 102 103 file=... … … 137 138 end 138 139 end 139 if isempty(datnum) 140 % if isempty(datnum)||isempty(filefound) 141 if isempty(filefound) 140 142 if NbSlice>1 141 143 message=['no set of ' num2str(NbSlice) ' (NbSlices) files found'];
Note: See TracChangeset
for help on using the changeset viewer.