Changeset 441 for trunk/src/series.m


Ignore:
Timestamp:
Jun 6, 2012, 2:45:37 PM (9 years ago)
Author:
sommeria
Message:

many bugs corrected for the new file organisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r440 r441  
    693693
    694694%% update pair menus
     695set(handles.Pairs,'Visible','on')
     696set(handles.PairString,'Visible','on')
    695697ListView=get(handles.ListView,'String');
    696698ListView{iview}=num2str(iview);
     
    698700set(handles.ListView,'Value',iview)
    699701update_mode(handles,i1_series,i2_series,j1_series,j2_series,time)
     702
    700703
    701704%% display the set of existing files as an image
     
    851854
    852855%% store the series info in 'UserData'
    853 
    854856SeriesData.i1_series{iview}=i1_series;
    855857SeriesData.i2_series{iview}=i2_series;
     
    860862set(handles.series,'UserData',SeriesData)
    861863
    862 
     864%% check for pair display
     865check_pairs=0;
     866for iview=1:numel(SeriesData.i2_series)
     867    if ~isempty(SeriesData.i2_series{iview})||~isempty(SeriesData.j2_series{iview})
     868        check_pairs=1;
     869    end
     870end
     871if check_pairs
     872    set(handles.Pairs,'Visible','on')
     873    set(handles.PairString,'Visible','on')
     874else
     875    set(handles.Pairs,'Visible','off')
     876    set(handles.PairString,'Visible','off')
     877end
    863878
    864879return
     
    10411056%------------------------------------------------------------
    10421057list_pair=get(handles.ListPairs,'String');%get the menu of image pairs
    1043 string=list_pair{get(handles.ListPairs,'Value')};
    1044 string=regexprep(string,',.*','');%removes time indication (after ',')
     1058if isempty(list_pair)
     1059    string='';
     1060else
     1061    string=list_pair{get(handles.ListPairs,'Value')};
     1062    string=regexprep(string,',.*','');%removes time indication (after ',')
     1063end
    10451064PairString=get(handles.PairString,'Data');
    10461065iview=get(handles.ListView,'Value');
     
    11981217end
    11991218set(handles.ListPairs,'String',displ_pair)
    1200 if isempty(displ_pair)
    1201     msgbox_uvmat('ERROR',['no file available for the selected subdirectory ' SubDir])
    1202 end
     1219% if isempty(displ_pair)
     1220%     msgbox_uvmat('ERROR',['no file available for the selected subdirectory' ])
     1221% end
    12031222
    12041223
     
    15431562ref_j=ceil((first_j+last_j)/2);
    15441563set(handles.num_ref_j,'String', num2str(ref_j))
    1545 ref_j_Callback(hObject, eventdata, handles)
     1564num_ref_j_Callback(hObject, eventdata, handles)
    15461565SeriesData=get(handles.series,'UserData');
    15471566if ~isfield(SeriesData,'Time')
Note: See TracChangeset for help on using the changeset viewer.