Changeset 904 for trunk/src/series
- Timestamp:
- May 30, 2015, 1:26:33 PM (10 years ago)
- Location:
- trunk/src/series
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r897 r904 70 70 Data.OutputSubDirMode='last'; %select the last subDir in the input table as root of the output subdir name (option 'all'/'first'/'last', 'all' by default) 71 71 Data.OutputFileMode='NbInput_i';% one output file expected per value of i index (used for waitbar) 72 Data.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1) 72 73 return 73 74 end … … 325 326 maskname='';% initiate the mask name 326 327 tic; 328 CheckOverwrite=1;%default 329 if isfield(Param,'CheckOverwrite') 330 CheckOverwrite=Param.CheckOverwrite; 331 end 327 332 for ifield=1:NbField 328 333 if ~isempty(RUNHandle)% update the waitbar in interactive mode with GUI series (checkrun=1) … … 350 355 j1_series_Civ1(ifield),j2_series_Civ1(ifield)); 351 356 end 357 end 358 if ~CheckOverwrite && exist(ncfile,'file') 359 continue% skip iteration if the mode overwrite is desactivated and the result file already exists 352 360 end 353 361 end … … 861 869 disp(errormsg) 862 870 end 863 disp(['ellapsed time ' num2str(toc ) 's'])871 disp(['ellapsed time ' num2str(toc/60,2) ' minutes']) 864 872 end 865 873 end -
trunk/src/series/ima_levels.m
r810 r904 95 95 %% read input parameters from an xml file if input is a file name (batch mode) 96 96 ParamOut=[]; 97 RUNHandle=[]; 98 WaitbarHandle=[]; 97 99 checkrun=1; 98 100 if ischar(Param) 99 101 Param=xml2struct(Param);% read Param as input file (batch case) 100 102 checkrun=0; 101 end 102 hseries=findobj(allchild(0),'Tag','series'); 103 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 104 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 103 else% interactive mode in Matlab 104 hseries=findobj(allchild(0),'Tag','series'); 105 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 106 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 107 end 105 108 106 109 %% subdirectory for output files … … 171 174 for ifile=1:nbfield 172 175 update_waitbar(WaitbarHandle,ifile/nbfield) 173 if ~isempty(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue')176 if ~isempty(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 174 177 disp('program stopped by user') 175 178 return -
trunk/src/series/sub_background.m
r897 r904 189 189 %% read input parameters from an xml file if input is a file name (batch mode) 190 190 checkrun=1; 191 RUNHandle=[]; 192 WaitbarHandle=[]; 191 193 if ischar(Param) 192 194 Param=xml2struct(Param);% read Param as input file (batch case) 193 195 checkrun=0; 194 e nd196 else 195 197 hseries=findobj(allchild(0),'Tag','series'); 196 198 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 197 199 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 200 end 198 201 199 202 %% input preparation … … 352 355 for ifield = step*(halfnbaver+1):step:nbfield_series-step*(halfnbaver+1)% ifield +iburst=index of the current processed image 353 356 update_waitbar(WaitbarHandle,ifield/nbfield_series) 354 if ~ strcmp(get(RUNHandle,'BusyAction'),'queue')357 if ~isempty(RUNHandle)&&~strcmp(get(RUNHandle,'BusyAction'),'queue') 355 358 disp('program stopped by user') 356 359 return
Note: See TracChangeset
for help on using the changeset viewer.