Changeset 672 for trunk/src/series.m


Ignore:
Timestamp:
Aug 6, 2013, 3:47:07 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r669 r672  
    243243%% introduce the input file name(s) if defined from input Param
    244244if isfield(Param,'FileName')
    245     InputTable={'','','','',''}; % refresh the file input table
     245    %InputTable={'','','','',''}; % refresh the file input table
     246    InputTable={}
    246247    set(handles.InputTable,'Data',InputTable)
    247248    if isfield(Param,'FileName_1')
     
    584585SeriesData=get(handles.series,'UserData');
    585586if strcmp(iview,'append') % display the input data as a new line in the table
    586     iview=size(InputTable,1);% the next line in InputTable becomes the current line
    587     InputTable(iview+1,:)={'','','','',''};
     587    iview=size(InputTable,1)+1;% the next line in InputTable becomes the current line
     588    %InputTable(iview+1,:)={'','','','',''};
    588589    InputTable(iview,:)=[{RootPath},{SubDir},{RootFile},{NomType},{FileExt}];
    589590elseif strcmp(iview,'one') % refresh the list of  input  file series
    590591    iview=1; %the first line in InputTable becomes the current line
    591     InputTable=[{'','','','',''};{'','','','',''}];
     592    InputTable={'','','','',''};
     593    %InputTable=[{'','','','',''};{'','','','',''}];
    592594    InputTable(iview,:)=[{RootPath},{SubDir},{RootFile},{NomType},{FileExt}];
    593595    set(handles.TimeTable,'Data',[{[]},{[]},{[]},{[]}])
     
    607609    SeriesData.Time={};
    608610end
    609 nbview=size(InputTable,1)-1;% rmq: the last line is set blank to allow manual addition of a line
     611%nbview=size(InputTable,1)-1;% rmq: the last line is set blank to allow manual addition of a line
     612nbview=size(InputTable,1);
    610613set(handles.ListView,'String',mat2cell((1:nbview)',ones(nbview,1)))
    611614set(handles.ListView,'Value',iview)
     
    21562159    set(handles.OutputDirExt,'String',ParamOut.OutputDirExt)
    21572160    OutputDirVisible='on';
    2158     SubDir=InputTable(1:end-1,2); %set of subdirectories sorted in alphabetical order
     2161    SubDir=InputTable(1:end,2); %set of subdirectories sorted in alphabetical order
    21592162    SubDirOut=SubDir{1};
    21602163    if numel(SubDir)>1
     
    24852488    nbview=size(InputTable,1);
    24862489    %     MaskTable=cell(nbview,1);
     2490    MaskTable=cell(nbview,1);%default
     2491    ListMask=cell(nbview,1);%default
    24872492    for iview=1:nbview
     2493        ListMask{iview,1}=num2str(iview);
    24882494        RootPath=InputTable{iview,1};
    24892495        if ~isempty(RootPath)
     
    25002506        end
    25012507    end
    2502     nbview=size(MaskTable,1);
     2508    %nbview=size(MaskTable,1);
    25032509    set(handles.MaskTable,'Data',MaskTable)
    25042510    %     set(handles.MaskTable,'ColumnFormat',{MaskTable'})
     
    25072513    set(handles.ListMask,'Visible','on')
    25082514    set(handles.ListMask,'String',ListMask)
    2509     set(handles.ListMask,'Value',numel(ListMask))
     2515    set(handles.ListMask,'Value',1)
    25102516else
    25112517    set(handles.MaskTable,'Visible','off')
Note: See TracChangeset for help on using the changeset viewer.