Changeset 344
- Timestamp:
- Dec 21, 2011, 10:37:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r343 r344 340 340 set(handles.RootName,'String',RootName) 341 341 set(handles.RootName,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding 342 drawnow 342 343 % i1=str2double(i1_str); 343 344 % i2=str2double(i2_str); … … 587 588 588 589 %% 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,'_'));591 590 % test_ima_i=numel(nom_type_ima)>1 && isempty(regexp(nom_type_ima(2:end),'\D','once'))%=1 for images with single indexing 592 591 % 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)) 592 try 593 if (~check_letter&&~check_separator)|| isequal(nom_type_nc,'_1-2')|| (MaxIndex_j==1) 594 594 set(handles.ListPairMode,'Value',1) 595 595 set(handles.ListPairMode,'String',{'series(Di)'}) … … 604 604 set(handles.ListPairMode,'Value',1)% advice 'pair j1-j2' except in MaxIndex_j is large 605 605 end 606 end 606 607 end 607 608 … … 653 654 %% list the possible index pairs, depending on the option set in ListPairMode 654 655 ListPairMode_Callback([], [], handles) 655 'TESTin' 656 browse=get(handles.RootName,'UserData') 656 browse=get(handles.RootName,'UserData'); 657 657 658 658 %% store the root input filename for future opening
Note: See TracChangeset
for help on using the changeset viewer.