Ignore:
Timestamp:
May 30, 2015, 1:26:33 PM (9 years ago)
Author:
sommeria
Message:

walltime estimate introduced in series, and option of result file overwrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r897 r904  
    189189%% read input parameters from an xml file if input is a file name (batch mode)
    190190checkrun=1;
     191RUNHandle=[];
     192WaitbarHandle=[];
    191193if ischar(Param)
    192194    Param=xml2struct(Param);% read Param as input file (batch case)
    193195    checkrun=0;
    194 end
     196else
    195197hseries=findobj(allchild(0),'Tag','series');
    196198RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
    197199WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series
     200end
    198201
    199202%% input preparation
     
    352355        for ifield = step*(halfnbaver+1):step:nbfield_series-step*(halfnbaver+1)% ifield +iburst=index of the current processed image
    353356            update_waitbar(WaitbarHandle,ifield/nbfield_series)
    354             if  ~strcmp(get(RUNHandle,'BusyAction'),'queue')
     357            if  ~isempty(RUNHandle)&&~strcmp(get(RUNHandle,'BusyAction'),'queue')
    355358                disp('program stopped by user')
    356359                return
Note: See TracChangeset for help on using the changeset viewer.