Changeset 344 for trunk/src/civ.m


Ignore:
Timestamp:
Dec 21, 2011, 10:37:14 AM (12 years ago)
Author:
sommeria
Message:

small update in civ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r343 r344  
    340340set(handles.RootName,'String',RootName)
    341341set(handles.RootName,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding
     342drawnow
    342343% i1=str2double(i1_str);
    343344% i2=str2double(i2_str);
     
    587588
    588589%%  set the menus of image pairs and default selection for civ   %%%%%%%%%%%%%%%%%%%
    589 check_letter=~isempty(regexp(nom_type_ima,'[a|A]$'));
    590 check_separator=~isempty(regexp(nom_type_ima,'_'));
    591590% test_ima_i=numel(nom_type_ima)>1 && isempty(regexp(nom_type_ima(2:end),'\D','once'))%=1 for images with single indexing
    592591% TODO: determine MaxIndex_i and MaxIndex_j using find_file_series (in the absence of xml file)
    593 if (~check_letter&&~check_separator)|| isequal(nom_type_nc,'_1-2')|| (exist('MaxIndex_j','var')&&(MaxIndex_j==1))
     592try
     593if (~check_letter&&~check_separator)|| isequal(nom_type_nc,'_1-2')|| (MaxIndex_j==1)
    594594    set(handles.ListPairMode,'Value',1)
    595595    set(handles.ListPairMode,'String',{'series(Di)'})   
     
    604604        set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large
    605605    end
     606end
    606607end
    607608
     
    653654%% list the possible index pairs, depending on the option set in ListPairMode
    654655ListPairMode_Callback([], [], handles)
    655 'TESTin'
    656 browse=get(handles.RootName,'UserData')
     656browse=get(handles.RootName,'UserData');
    657657
    658658%% store the root input filename for future opening
Note: See TracChangeset for help on using the changeset viewer.