Changeset 1001 for trunk/src/series.m


Ignore:
Timestamp:
Feb 27, 2017, 9:28:27 AM (8 years ago)
Author:
sommeria
Message:

tubcorrelation added, compilation improved to accept tranform fct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r998 r1001  
     1
     2
     3
    14%'series': master function associated to the GUI series.m for analysis field series 
    25%------------------------------------------------------------------------
     
    185188TransformPathList=cell(NbBuiltinTransform,1); % initiate the cell matrix of Action fct paths
    186189TransformPathList(:)={path_transform_fct}; % set the default path to series fcts to all list members
     190SeriesData.TransformPath=path_transform_fct;% store the standard path for trqnsform functions (needed for compilation)
    187191
    188192%% get the user defined functions stored in the personal file uvmat_perso.mat
     
    15261530if strcmp(ActionExt,'.sh')
    15271531    TransformPath='';
    1528     if ~isempty(get(handles.ActionExt,'UserData'))
    1529         TransformPath=get(handles.ActionExt,'UserData');
     1532    if isfield(SeriesData,'TransformPath')
     1533        TransformPath=SeriesData.TransformPath;
     1534        if isfield(SeriesData,'TransformList')
     1535            TransformList=get(handles.TransformName,'String');
     1536            TransformIndex=get(handles.TransformName,'Value');
     1537            TransformName=TransformList{TransformIndex};
     1538            if ~ismember(TransformName,SeriesData.TransformList)
     1539                TransformPath='';
     1540            end
     1541        end
     1542    end
     1543    if ~isempty(TransformPath)&&...
     1544          ~strcmp(TransformPath,get(handles.TransformPath,'String'))% if the transform is not in paths set for compilation
     1545        msgbox_uvmat('ERROR', 'compilation not available for this transform function, select .m')
     1546        return
    15301547    end
    15311548    set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch'
     
    25522569FieldTransformVisible='off';  %hidden by default
    25532570if isfield(ParamOut,'FieldTransform')
    2554     FieldTransformVisible=ParamOut.FieldTransform; 
     2571    if ~strcmp(ParamOut.FieldTransform,'off')
     2572    FieldTransformVisible='on'; 
     2573    end
     2574    if iscell(ParamOut.FieldTransform)
     2575        SeriesData.TransformList=ParamOut.FieldTransform;
     2576    end
    25552577    TransformName_Callback([],[], handles)
    25562578end
    25572579set(handles.FieldTransform,'Visible',FieldTransformVisible)
    2558 if isfield(ParamOut,'TransformPath')
    2559     set(handles.ActionExt,'UserData',ParamOut.TransformPath)
     2580if isfield(ParamOut,'TransformPath');% record the path of transform function requested for compilation
     2581    set(handles.TransformPath,'UserData',ParamOut.TransformPath)
    25602582else
    2561     set(handles.ActionExt,'UserData',[])
     2583    set(handles.TransformPath,'UserData',[])
    25622584end
    25632585
Note: See TracChangeset for help on using the changeset viewer.