Changeset 844 for trunk/src/series.m


Ignore:
Timestamp:
Dec 15, 2014, 10:03:23 PM (10 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r842 r844  
    279279            Param.HiddenData.FileInfo{2},Param.HiddenData.MovieObject{2},2)
    280280    end
     281    %% enable field and veltype menus, in accordance with the current action
     282ActionName_Callback([],[], handles)
     283
     284%% set length of waitbar
     285displ_time(handles)
     286
    281287else
    282288    set(handles.REFRESH,'BackgroundColor',[1 0 1])% set REFRESH button to magenta color to indicate that input refresh is needed
     
    592598    end
    593599end
     600%% enable field and veltype menus, in accordance with the current action
     601ActionName_Callback([],[], handles)
     602
     603%% set length of waitbar
     604displ_time(handles)
     605
    594606set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  button to red color (indicate activation finished)
    595607set(handles.series,'Pointer','arrow') % set the mouse pointer to 'watch'
     
    764776%% initiate input file series and refresh the current field view:     
    765777update_rootinfo(handles,i1_series,i2_series,j1_series,j2_series,FileInfo,MovieObject,iview);
     778%% enable field and veltype menus, in accordance with the current action
     779ActionName_Callback([],[], handles)
     780
     781%% set length of waitbar
     782displ_time(handles)
     783
    766784set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  button to red color (end of activation)
    767785
     
    10421060CData=cat(3,zeros(size(CData)),CData,zeros(size(CData)));%make color images r=0,g,b=0
    10431061set(handles.FileStatus,'CData',CData);
    1044 
    1045 %% enable field and veltype menus, in accordance with the current action
    1046 ActionName_Callback([],[], handles)
    1047 
    1048 %% set length of waitbar
    1049 displ_time(handles)
    1050 
    10511062
    10521063%-----------------------------------------------------------guide -------------
     
    21752186
    21762187%% definition of the directory containing the output files
    2177 SubDirOut='';%default
    2178 OutputDirExt='.series'; %default
    2179 if isfield(ParamOut,'OutputDirExt')&&~isempty(ParamOut.OutputDirExt)
    2180     OutputDirExt=ParamOut.OutputDirExt;
    2181 end
    2182 set(handles.OutputDirExt,'String',OutputDirExt)
    2183 OutputDirVisible='off';
    2184 OutputSubDirMode='auto';%default
    2185 if isfield(ParamOut,'OutputSubDirMode')
    2186     OutputSubDirMode=ParamOut.OutputSubDirMode;
    2187 end
    2188 switch OutputSubDirMode
    2189     case 'auto';%default
    2190         OutputDirVisible='on';
    2191         SubDir=InputTable(1:end,2); %set of subdirectories
    2192         SubDirOut=SubDir{1};
    2193         if numel(SubDir)>1
    2194             for ilist=2:numel(SubDir)
    2195                 SubDirOut=[SubDirOut '-' SubDir{ilist}];
     2188if  ~(isfield(SeriesData,'ActionName') && strcmp(ActionName,SeriesData.ActionName))
     2189    OutputDirExt='.series'; %default
     2190    if isfield(ParamOut,'OutputDirExt')&&~isempty(ParamOut.OutputDirExt)
     2191        OutputDirExt=ParamOut.OutputDirExt;
     2192    end
     2193    set(handles.OutputDirExt,'String',OutputDirExt)
     2194    OutputDirVisible='off';
     2195    OutputSubDirMode='auto';%default
     2196    SubDirOut='';
     2197    if isfield(ParamOut,'OutputSubDirMode')
     2198        OutputSubDirMode=ParamOut.OutputSubDirMode;
     2199    end
     2200    switch OutputSubDirMode
     2201        case 'auto';%default
     2202            OutputDirVisible='on';
     2203            SubDir=InputTable(1:end,2); %set of subdirectories
     2204            SubDirOut=SubDir{1};
     2205            if numel(SubDir)>1
     2206                for ilist=2:numel(SubDir)
     2207                    SubDirOut=[SubDirOut '-' SubDir{ilist}];
     2208                end
    21962209            end
    2197         end
    2198     case 'first'
    2199         OutputDirVisible='on';
    2200         SubDirOut=InputTable{1,2}; %use the first subdir name (+OutputDirExt) as output  subdirectory
    2201     case 'last'
    2202         OutputDirVisible='on';
    2203         SubDirOut=InputTable{end,2}; %use the last subdir name (+OutputDirExt) as output  subdirectory
    2204 end
    2205 set(handles.OutputSubDir,'String',SubDirOut)
    2206 set(handles.OutputDirExt,'Visible',OutputDirVisible)
    2207 set(handles.OutputSubDir,'Visible',OutputDirVisible)
    2208 set(handles.OutputDir_title,'Visible',OutputDirVisible)
    2209 
    2210 %% visibility of the run mode (local or background or cluster)
    2211 if strcmp(OutputSubDirMode,'none')
    2212     RunModeVisible='off';% only local mode available if no output file is produced
    2213 else
    2214      RunModeVisible='on';
    2215 end
    2216 set(handles.RunMode,'Visible',RunModeVisible)
    2217 set(handles.ActionExt,'Visible',RunModeVisible)
    2218 set(handles.RunMode_title,'Visible',RunModeVisible)
    2219 set(handles.ActionExt_title,'Visible',RunModeVisible)
    2220 
     2210        case 'first'
     2211            OutputDirVisible='on';
     2212            SubDirOut=InputTable{1,2}; %use the first subdir name (+OutputDirExt) as output  subdirectory
     2213        case 'last'
     2214            OutputDirVisible='on';
     2215            SubDirOut=InputTable{end,2}; %use the last subdir name (+OutputDirExt) as output  subdirectory
     2216    end
     2217    set(handles.OutputSubDir,'String',SubDirOut)
     2218    set(handles.OutputDirExt,'Visible',OutputDirVisible)
     2219    set(handles.OutputSubDir,'Visible',OutputDirVisible)
     2220    set(handles.OutputDir_title,'Visible',OutputDirVisible)
     2221    SeriesData.ActionName=ActionName;%record ActionName for next use
     2222   
     2223   
     2224    %% visibility of the run mode (local or background or cluster)
     2225    if strcmp(OutputSubDirMode,'none')
     2226        RunModeVisible='off';% only local mode available if no output file is produced
     2227    else
     2228        RunModeVisible='on';
     2229    end
     2230    set(handles.RunMode,'Visible',RunModeVisible)
     2231    set(handles.ActionExt,'Visible',RunModeVisible)
     2232    set(handles.RunMode_title,'Visible',RunModeVisible)
     2233    set(handles.ActionExt_title,'Visible',RunModeVisible)
     2234end
    22212235
    22222236%% Expected nbre of output files
Note: See TracChangeset for help on using the changeset viewer.