Changeset 1148 for trunk/src/series.m


Ignore:
Timestamp:
Jun 21, 2024, 4:51:59 PM (4 months ago)
Author:
sommeria
Message:

civ_3D corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1147 r1148  
    23212321
    23222322    % remove old Action options in the menu (keeping a menu length <nb_builtin_ACTION+5)
    2323     if length(ActionList)>NbBuiltinAction+5; % nb_builtin_ACTION=nbre of functions always remaining in the initial menu
     2323    if length(ActionList)>NbBuiltinAction+5% nb_builtin_ACTION=nbre of functions always remaining in the initial menu
    23242324        nbremove=length(ActionList)-NbBuiltinAction-5;
    23252325        ActionList(NbBuiltinAction+1:end-5)=[];
     
    23542354%% check the current ActionPath to the selected function
    23552355ActionPath=ActionPathList{ActionIndex}; % current recorded path
    2356 set(handles.ActionPath,'String',ActionPath); % show the path to the senlected function
     2356set(handles.ActionPath,'String',ActionPath); % show the path to the selected function
    23572357
    23582358%% reinitialise the waitbar
     
    23612361%% Put the first line of the selected Action fct as tooltip help
    23622362try
    2363     [fid,errormsg] =fopen([ActionName '.m']);
     2363    [fid,errormsg] =fopen([fullfile(ActionPath,ActionName) '.m']);
    23642364    InputText=textscan(fid,'%s',1,'delimiter','\n');
    23652365    fclose(fid);
     
    25632563
    25642564%% Impose the whole input file index range if requested
    2565 if isfield(ParamOut,'WholeIndexRange')&&isequal(ParamOut.WholeIndexRange,'on')
     2565if ~isfield(ParamOut,'WholeIndexRange')
     2566    ParamOut.WholeIndexRange='off';
     2567end
     2568if ~isfield(ParamOut,'WholeIndexRange_j')
     2569    ParamOut.WholeIndexRange_j='off';
     2570end
     2571
     2572if strcmp(ParamOut.WholeIndexRange,'on')
    25662573    MinIndex_i=get(handles.MinIndex_i,'Data');
    2567     MinIndex_j=get(handles.MinIndex_j,'Data');
    25682574    MaxIndex_i=get(handles.MaxIndex_i,'Data');
    2569     MaxIndex_j=get(handles.MaxIndex_j,'Data');
    25702575    set(handles.num_first_i,'String',num2str(MinIndex_i(1)))% set first as the min index (for the first line)
    25712576    set(handles.num_last_i,'String',num2str(MaxIndex_i(1)))% set last as the max index (for the first line)
    25722577    set(handles.num_incr_i,'String','1')
     2578else
     2579    first_i=1;last_i=1;
     2580    if isfield(Param.IndexRange,'first_i')
     2581        first_i=Param.IndexRange.first_i;
     2582        last_i=Param.IndexRange.last_i;
     2583    end
     2584end
     2585if strcmp(ParamOut.WholeIndexRange,'on')||strcmp(ParamOut.WholeIndexRange_j,'on')
     2586    MinIndex_j=get(handles.MinIndex_j,'Data');
     2587    MaxIndex_j=get(handles.MaxIndex_j,'Data');
    25732588    set(handles.num_first_j,'String',num2str(MinIndex_j(1)))% set first as the min index (for the first line)
    25742589    set(handles.num_last_j,'String',num2str(MaxIndex_j(1)))% set last as the max index (for the first line)
    25752590    set(handles.num_incr_j,'String','1')
    25762591else  % check index ranges
    2577     first_i=1;last_i=1;first_j=1;last_j=1;
    2578     if isfield(Param.IndexRange,'first_i')
    2579         first_i=Param.IndexRange.first_i;
    2580         last_i=Param.IndexRange.last_i;
    2581     end
     2592    first_j=1;last_j=1;
    25822593    if isfield(Param.IndexRange,'first_j')
    25832594        first_j=Param.IndexRange.first_j;
Note: See TracChangeset for help on using the changeset viewer.