Changeset 1001 for trunk/src/series.m
- Timestamp:
- Feb 27, 2017, 9:28:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r998 r1001 1 2 3 1 4 %'series': master function associated to the GUI series.m for analysis field series 2 5 %------------------------------------------------------------------------ … … 185 188 TransformPathList=cell(NbBuiltinTransform,1); % initiate the cell matrix of Action fct paths 186 189 TransformPathList(:)={path_transform_fct}; % set the default path to series fcts to all list members 190 SeriesData.TransformPath=path_transform_fct;% store the standard path for trqnsform functions (needed for compilation) 187 191 188 192 %% get the user defined functions stored in the personal file uvmat_perso.mat … … 1526 1530 if strcmp(ActionExt,'.sh') 1527 1531 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 1530 1547 end 1531 1548 set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch' … … 2552 2569 FieldTransformVisible='off'; %hidden by default 2553 2570 if 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 2555 2577 TransformName_Callback([],[], handles) 2556 2578 end 2557 2579 set(handles.FieldTransform,'Visible',FieldTransformVisible) 2558 if isfield(ParamOut,'TransformPath') 2559 set(handles. ActionExt,'UserData',ParamOut.TransformPath)2580 if isfield(ParamOut,'TransformPath');% record the path of transform function requested for compilation 2581 set(handles.TransformPath,'UserData',ParamOut.TransformPath) 2560 2582 else 2561 set(handles. ActionExt,'UserData',[])2583 set(handles.TransformPath,'UserData',[]) 2562 2584 end 2563 2585
Note: See TracChangeset
for help on using the changeset viewer.