Changeset 128 for trunk/src/dataview.m


Ignore:
Timestamp:
Nov 21, 2010, 10:06:11 PM (14 years ago)
Author:
sommeria
Message:

series: give writting access to the group for all subdirectories produced
uvmat.fig: change of vect and scalar frames (to be consistent with view_field)
uvmat: various cleaning
plot_field: various cleaning to improve axes definition and avoid blinking
geometry_calib: improved dispay of point coordiantes, improved link with dataview for REPLICATE.
struct2nc: repair bug , file was not closed.
cell2tab: cleaning
dataview: improve the browser
civ: solve pb of image naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dataview.m

    r127 r128  
    3232                   'gui_LayoutFcn',  [] , ...
    3333                   'gui_Callback',   []);
    34 if nargin & ischar(varargin{1})
     34if nargin && ischar(varargin{1}) && ~isempty(regexp(varargin{1},'_Callback','once'))             
    3535    gui_State.gui_Callback = str2func(varargin{1});
    3636end
     
    119119function browser_Callback(hObject, eventdata, handles)
    120120%------------------------------------------------------------------------
    121 CurrentFile='/raid/PROJETS';%get(handles.RootDirectory,'String');
     121CurrentFile=fileparts(get(handles.RootDirectory,'String'));
     122if ~exist(CurrentFile,'dir')
     123    CurrentFile='/fsnet/project/coriolis';
     124end
    122125set(handles.SubCampaignTest,'Value',0)
    123126CampaignDir=uigetdir(CurrentFile,'Open the Campaign directory'); %file browser
     
    129132function OpenSubCampaign_Callback(hObject, eventdata, handles)
    130133%------------------------------------------------------------------------
    131 CurrentFile='/coriolis/bigone/PROJETS';%get(handles.RootDirectory,'String');
     134CurrentFile=get(handles.RootDirectory,'String');
     135if ~exist(CurrentFile,'dir')
     136    CurrentFile='/fsnet/project/coriolis';
     137end
    132138set(handles.SubCampaignTest,'Value',1)
    133139CampaignDir=uigetdir(CurrentFile,'Open the Campaign directory'); %file browser
     
    184190set(handles.ListDevices,'String',[{'*'};ListDevices'])
    185191set(handles.ListXml,'String',[{'*'};ListXml'])
     192'TEST'
     193testList
    186194if testList
    187195    DataviewData=get(handles.figure,'UserData');
    188     DataView.List=List;
     196    DataviewData.List=List;
    189197    set(handles.figure,'UserData',DataviewData)
    190198end
     
    502510message='this function will delete all files with extensions .log, .bat, .cmx,.cmx2,.errors in the input directory(ies)';
    503511answer=msgbox_uvmat('INPUT_Y-N',message);
    504 if ~isequal(answer{1},'OK')
     512if ~isequal(answer,'Yes')
    505513    return
    506514end
    507515set(handles.ListExperiments,'Value',1)
    508516ListExperiments_Callback(hObject, eventdata, handles)%update the overview of the experiment directories
    509 DataviewData=get(handles.figure,'UserData');
     517DataviewData=get(handles.figure,'UserData')
    510518List=DataviewData.List;
    511519Currentpath=get(handles.RootDirectory,'String');
Note: See TracChangeset for help on using the changeset viewer.