Changeset 450 for trunk/src/series.m


Ignore:
Timestamp:
Jun 12, 2012, 12:27:42 AM (9 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r448 r450  
    665665
    666666%% number of slices
     667NbSlice=MaxIndex_j-MinIndex_j+1;%default
    667668if isfield(XmlData,'GeometryCalib') && isfield(XmlData.GeometryCalib,'SliceCoord')
    668669    siz=size(XmlData.GeometryCalib.SliceCoord);
    669670    if siz(1)>1
    670671        NbSlice=siz(1);
    671     else
    672         NbSlice=1;
    673     end
    674     set(handles.num_NbSlice,'String',num2str(NbSlice))
    675 end
    676 
     672    end
     673end
     674set(handles.num_NbSlice,'String',num2str(NbSlice))
     675   
    677676%% update pair menus
    678677set(handles.Pairs,'Visible','on')
     
    14171416    end
    14181417    detect=exist(fullfile(Series.InputTable{1,1},SubDirOutNew),'dir');% test if  the dir  already exist
     1418    check_create=1; %need to create the result directory by default
    14191419    while detect
    14201420        answer=msgbox_uvmat('INPUT_Y-N',['use existing ouput directory: ' fullfile(Series.InputTable{1,1},SubDirOutNew) ', possibly delete previous data']);
     
    14381438    Series.OutputRootFile=Series.InputTable{1,3};% the first sorted RootFile taken for output
    14391439    set(handles.OutputDirExt,'String',Series.OutputDirExt)
    1440     Series=rmfield(Series,'OutputDirExt');%removes redondant information
     1440    %removes redondant information
     1441    Series=rmfield(Series,'OutputDirExt');
     1442    Series.IndexRange=rmfield(Series.IndexRange,'TimeTable');
     1443    Series.IndexRange=rmfield(Series.IndexRange,'MinIndex');
     1444    Series.IndexRange=rmfield(Series.IndexRange,'MaxIndex');
    14411445    % create output directory
    14421446    if check_create
     
    14491453    filexml=fullfile(Series.OutputDir,[Series.InputTable{1,3} '.xml']);% name of the parameter xml file set in this directory
    14501454    t=struct2xml(Series);
     1455    t=set(t,1,'name','Series');
    14511456    save(t,filexml);
    14521457end
Note: See TracChangeset for help on using the changeset viewer.