Changeset 664 for trunk/src/series.m


Ignore:
Timestamp:
Jul 11, 2013, 11:56:47 PM (11 years ago)
Author:
sommeria
Message:

a few bugs corrected: import and retrival of parameters in series. mask in civ_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r654 r664  
    25632563
    25642564InputTable=get(handles.InputTable,'Data');
    2565 [FileName, PathName] = uigetfile( ...
    2566        {'*.xml', ' (*.xml)';
    2567        '*.xml',  '.xml files '; ...
    2568         '*.*',  'All Files (*.*)'}, ...
    2569         'Pick a file',InputTable{1,1});
    2570 filexml=[PathName FileName];%complete file name
    2571 if isempty(filexml),return;end %abandon if no file is introduced by the browser
    2572 Param=xml2struct(filexml);
    2573 fill_GUI(Param,handles.series)
     2565filexml=uigetfile_uvmat('pick a xml parameter file',InputTable{1,1},'.xml');
     2566% [FileName, PathName] = uigetfile( ...
     2567%        {'*.xml', ' (*.xml)';
     2568%        '*.xml',  '.xml files '; ...
     2569%         '*.*',  'All Files (*.*)'}, ...
     2570%         'Pick a file',InputTable{1,1});
     2571% filexml=[PathName FileName];%complete file name
     2572if ~isempty(filexml)%abandon if no file is introduced by the browser
     2573    Param=xml2struct(filexml);
     2574    fill_GUI(Param,handles.series)
     2575    if isfield(Param,'ActionInput')
     2576            set(handles.ActionInput,'Visible','on')
     2577    set(handles.ActionInput_title,'Visible','on')
     2578    set(handles.ActionInputView,'Visible','on')
     2579    set(handles.ActionInputView,'Value',0)
     2580    %set(handles.ActionInput,'String',ActionName)
     2581%    ParamOut.ActionInput.Program=ActionName; % record the program in ActionInput
     2582    SeriesData=get(handles.series,'UserData');
     2583    SeriesData.ActionInput=Param.ActionInput;
     2584    set(handles.series,'UserData',SeriesData)
     2585    end
     2586    ActionName_Callback([],[],handles)
     2587end
    25742588
    25752589%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.