Ignore:
Timestamp:
Jun 20, 2012, 2:14:10 PM (12 years ago)
Author:
sommeria
Message:

a few bug repairs and update in the series fcts

File:
1 edited

Legend:

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

    r459 r462  
    7575%% select different modes,  RUN, parameter input, BATCH
    7676% BATCH  case: read the xml file for batch case
    77 ParamOut=Param; %default output
    7877if ischar(Param)
    79     if strcmp(Param,'input?')
    80         checkrun=1;% will search input parameters (preparation of BATCH mode)
    81     else
    8278        Param=xml2struct(Param);
    8379        checkrun=0;
    84     end
    8580% RUN case: parameters introduced as the input structure Param
    8681else
    8782    hseries=guidata(Param.hseries);%handles of the GUI series
    8883    WaitbarPos=get(hseries.waitbar_frame,'Position');%position of the waitbar on the GUI series
    89     checkrun=2; % indicate the RUN option is used
    90 end
     84    if isfield(Param,'Specific')&& strcmp(Param.Specific,'?')
     85        checkrun=1;% will search input parameters (preparation of BATCH mode)
     86    else
     87        checkrun=2; % indicate the RUN option is used
     88    end
     89end
     90ParamOut=Param; %default output
    9191
    9292%% root input file(s) and type
     
    147147    if strcmp(lower(NomType{1}(end)),'a')
    148148        NomTypeOut=NomType{1};%case of letter appendix
     149    elseif isempty(j1_series)
     150        NomTypeOut='_1';
    149151    else
    150152        NomTypeOut='_1_1';% caseof purely numerical indexing
Note: See TracChangeset for help on using the changeset viewer.