Changeset 905 for trunk/src/series


Ignore:
Timestamp:
May 30, 2015, 8:44:20 PM (9 years ago)
Author:
sommeria
Message:

projection with tps corrected + minor changes

Location:
trunk/src/series
Files:
2 edited

Legend:

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

    r904 r905  
    333333    if ~isempty(RUNHandle)% update the waitbar in interactive mode with GUI series  (checkrun=1)
    334334        update_waitbar(WaitbarHandle,ifield/NbField)
    335         if  ~strcmp(get(RUNHandle,'BusyAction'),'queue')
     335        if  checkrun && ~strcmp(get(RUNHandle,'BusyAction'),'queue')
    336336            disp('program stopped by user')
    337337            break
  • trunk/src/series/merge_proj.m

    r883 r905  
    7373    ParamOut.OutputFileMode='NbInput';% '=NbInput': 1 output file per input file index, '=NbInput_i': 1 file per input file index i, '=NbSlice': 1 file per slice
    7474      %check the input files
     75    ParamOut.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1)
    7576    first_j=[];
    7677    if isfield(Param.IndexRange,'first_j'); first_j=Param.IndexRange.first_j; end
     
    9091%%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
    9192ParamOut=[]; %default output
     93RUNHandle=[];
     94WaitbarHandle=[];
    9295%% read input parameters from an xml file if input is a file name (batch mode)
    9396checkrun=1;
     
    9598    Param=xml2struct(Param);% read Param as input file (batch case)
    9699    checkrun=0;
    97 end
    98 hseries=findobj(allchild(0),'Tag','series');
    99 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
    100 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series
     100else
     101    hseries=findobj(allchild(0),'Tag','series');
     102    RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
     103    WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series
     104end
    101105
    102106%% define the directory for result file (with path=RootPath{1})
     
    407411    end
    408412end
    409 disp(['total ellapsed time ' num2str(toc(tstart))])
     413ellapsed_time=toc(tstart);
     414disp(['total ellapsed time ' num2str(ellapsed_time/60,2) ' minutes'])
     415disp([ num2str(ellapsed_time/(60*NbField),3) ' minutes per iteration'])
    410416
    411417%'merge_field': concatene fields
Note: See TracChangeset for help on using the changeset viewer.