Ignore:
Timestamp:
Mar 25, 2013, 6:34:00 PM (11 years ago)
Author:
sommeria
Message:

commit the series fcts with the new form

File:
1 edited

Legend:

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

    r573 r592  
    3434function ParamOut=check_data_files(Param)
    3535
    36 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName
    37 if ~exist('Param','var') % case with no input parameter
    38     ParamOut={'NbViewMax';'';...% max nbre of input file series (default='' , no limitation)
    39         'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default)
    40         'NbSlice';'on'; ...%nbre of slices ('off' by default)
    41         'VelType';'off';...% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
    42         'FieldName';'off';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
    43         'FieldTransform'; 'off';...%can use a transform function
    44         'ProjObject';'off';...%can use projection object(option 'off'/'on',
    45         'Mask';'off';...%can use mask option   (option 'off'/'on', 'off' by default)
    46         'OutputDirExt';'';...%set the output dir extension
    47                ''};
    48         return
     36% %% set the input elements needed on the GUI series when the action is selected in the menu ActionName
     37% if ~exist('Param','var') % case with no input parameter
     38%     ParamOut={'NbViewMax';'';...% max nbre of input file series (default='' , no limitation)
     39%         'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default)
     40%         'NbSlice';'on'; ...%nbre of slices ('off' by default)
     41%         'VelType';'off';...% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
     42%         'FieldName';'off';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
     43%         'FieldTransform'; 'off';...%can use a transform function
     44%         'ProjObject';'off';...%can use projection object(option 'off'/'on',
     45%         'Mask';'off';...%can use mask option   (option 'off'/'on', 'off' by default)
     46%         'OutputDirExt';'';...%set the output dir extension
     47%                ''};
     48%         return
     49% end
     50%% input preparation mode (no RUN)
     51if isstruct(Param) && isequal(Param.Action.RUN,0)
     52    ParamOut.AllowInputSort='off';...% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default)
     53    ParamOut.WholeIndexRange='off';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
     54    ParamOut.NbSlice='on'; ...%nbre of slices ('off' by default)
     55    ParamOut.VelType='off';...% menu for selecting the velocity type (options 'off'/'one'/'two',  'off' by default)
     56    ParamOut.FieldName='off';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default)
     57    ParamOut.FieldTransform = 'off';...%can use a transform function
     58    ParamOut.ProjObject='off';...%can use projection object(option 'off'/'on',
     59    ParamOut.Mask='off';...%can use mask option   (option 'off'/'on', 'off' by default)
     60    ParamOut.OutputDirExt='';%set the output dir extension (blank=no output dir)
     61return
    4962end
    50 
    5163%%%%%%%%%%%%  STANDARD PART  %%%%%%%%%%%%
    5264%% select different modes,  RUN, parameter input, BATCH
     
    7486FileExt=Param.InputTable(:,5);
    7587[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     88if isempty(i1_series)
     89    return
     90end
    7691%%%%%%%%%%%%
    7792% The cell array filecell is the list of input file names, while
Note: See TracChangeset for help on using the changeset viewer.