Ignore:
Timestamp:
Mar 16, 2013, 3:46:12 PM (8 years ago)
Author:
sommeria
Message:

various minor corrections made

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/browse_data.m

    r581 r589  
    169169
    170170
    171 %------------------------------------------------------------------------
    172 function MirrorDir_Callback(hObject, eventdata, handles)
    173 %------------------------------------------------------------------------   
    174 MirrorDir=get(handles.MirrorDir,'String');
    175 [tild,MirrorName]=fileparts(MirrorDir);
    176 s=xml2struct(fullfile(MirrorDir,[MirrorName '.xml']));
    177 set(handles.SourceDir,'String',s.SourceDir)
    178 SourceDir_Callback([],[], handles)
     171% %------------------------------------------------------------------------
     172% function MirrorDir_Callback(hObject, eventdata, handles)
     173% %------------------------------------------------------------------------   
     174% MirrorDir=get(handles.MirrorDir,'String');
     175% [tild,MirrorName]=fileparts(MirrorDir);
     176% s=xml2struct(fullfile(MirrorDir,[MirrorName '.xml']));
     177% set(handles.SourceDir,'String',s.SourceDir)
     178% SourceDir_Callback([],[], handles)
    179179
    180180
     
    212212 function ListExperiments_Callback(hObject, eventdata, handles)
    213213%------------------------------------------------------------------------
     214MirrorPath='';
     215CampaignPath=get(handles.SourceDir,'String');
    214216if strcmp(get(handles.MirrorDir,'Visible'),'on')
    215     CampaignPath=get(handles.MirrorDir,'String');
    216 else
    217     CampaignPath=get(handles.SourceDir,'String');
     217%     CampaignPath=get(handles.MirrorDir,'String');
     218    MirrorPath=get(handles.MirrorDir,'String');
     219else
     220%     CampaignPath=get(handles.SourceDir,'String');
    218221end
    219222% MirrorPath=get(handles.MirrorDir,'String');
     
    228231    testList=0;
    229232end
    230 scan_experiments(handles,ListExperiments,CampaignPath)
     233scan_experiments(handles,ListExperiments,CampaignPath,MirrorPath)
    231234
    232235
     
    242245        if ~isequal(hdir(ilist).name(1),'.')
    243246            DataSeries=fullfile(CampaignPath,ListExperiments{iexp},hdir(ilist).name);
    244             if exist('MirrorPath','var')
     247            if ~isempty(MirrorPath)
    245248                mirror=fullfile(MirrorPath,ListExperiments{iexp},hdir(ilist).name);
    246249                if ~exist(mirror)% create mirror if needed
    247                     system(['ln -s ' source ' ' mirror])
     250                    system(['ln -s ' DataSeries ' ' mirror])
    248251                end
    249252            end
Note: See TracChangeset for help on using the changeset viewer.