Changeset 1070 for trunk/src/series.m
- Timestamp:
- Jul 11, 2019, 7:02:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r1069 r1070 612 612 function REFRESH_Callback(hObject, eventdata, handles) 613 613 %------------------------------------------------------------------------ 614 check_input_file_series(handles) 615 616 %% enable field and veltype menus, in accordance with the current action 617 ActionInput_Callback([],[], handles) 618 619 620 function check_input_file_series(handles) 614 621 InputTable=get(handles.InputTable,'Data'); 615 622 set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch' … … 676 683 set(handles.series,'Pointer','arrow') % set the mouse pointer to 'watch' 677 684 678 %% enable field and veltype menus, in accordance with the current action679 ActionInput_Callback([],[], handles)680 685 681 686 … … 1661 1666 Param.InputTable(:,1)=ListPath(:,iexp); 1662 1667 Param.InputTable(:,2)=ListSubdir(:,iexp); 1663 if size(Param.InputTable,1)==1% case of single input line 1664 Param.OutputSubDir=ListSubdir{iexp}; 1665 end 1666 set(handles.InputTable,'Data',Param.InputTable) 1667 % set(handles.OutputSubDir,'String',ListSubdir{iexp}) 1668 OutputSubDir=unique(ListSubdir(:,iexp)); 1669 Param.OutputSubDir=OutputSubDir{1}; 1670 if numel(OutputSubDir)>1% case 1671 for iout=2:numel(OutputSubDir) 1672 Param.OutputSubDir=[Param.OutputSubDir '-' OutputSubDir{iout}]; 1673 end 1674 end 1668 1675 end 1669 1676 [xx,ExpName]=fileparts(Param.InputTable{1,1}); 1670 1677 Param.IndexRange.first_i=str2num(get(handles.num_first_i,'String'));%reset the firrst_i and last_i for multiple experiments, modified by the splitting into NbProcess 1671 1678 Param.IndexRange.last_i=str2num(get(handles.num_last_i,'String')); 1672 %% create the output data directory if needed 1679 1680 %% create the output data directory if needed, after chcking its existence 1673 1681 OutputDir=''; 1674 1682 answer=''; 1675 1683 if isfield(Param,'OutputSubDir')% possibly update the output dir if it already exists 1676 SubDirOut=[ get(handles.OutputSubDir,'String')Param.OutputDirExt];1684 SubDirOut=[Param.OutputSubDir Param.OutputDirExt]; 1677 1685 SubDirOutNew=SubDirOut; 1678 1686 detect=exist(fullfile(Param.InputTable{1,1},SubDirOutNew),'dir'); % test if the dir already exist … … 1708 1716 continue 1709 1717 end 1710 Param.OutputDirExt=regexprep(SubDirOutNew, Param.OutputSubDir,'');1718 Param.OutputDirExt=regexprep(SubDirOutNew,['^' Param.OutputSubDir],''); 1711 1719 Param.OutputRootFile=Param.InputTable{1,3}; % the first sorted RootFile taken for output 1712 set(handles.OutputDirExt,'String',Param.OutputDirExt) 1713 OutputDir=fullfile(Param.InputTable{1,1},[Param.OutputSubDir Param.OutputDirExt]) % full name (with path) of output directory 1720 OutputDir=fullfile(Param.InputTable{1,1},[Param.OutputSubDir Param.OutputDirExt]); % full name (with path) of output directory 1714 1721 if check_create % create output directory if it does not exist 1715 1722 [tild,msg1]=mkdir(OutputDir); … … 1722 1729 elseif isfield(Param,'ActionInput')&&isfield(Param.ActionInput,'LogPath')% custom definition of the output dir 1723 1730 OutputDir=Param.ActionInput.LogPath; 1731 end 1732 1733 set(handles.OutputSubDir,'String',Param.OutputSubDir) 1734 set(handles.OutputDirExt,'String',Param.OutputDirExt) 1735 drawnow 1736 if get(handles.Replicate,'Value') 1737 set(handles.InputTable,'Data',Param.InputTable) 1738 check_input_file_series(handles) 1724 1739 end 1725 1740 DirXml=fullfile(OutputDir,'0_XML'); … … 2209 2224 end 2210 2225 set(handles.Replicate,'BackgroundColor',[0 1 0]) 2211 if NbExp>1 2212 set(handles.REFRESH,'BackgroundColor',[1 0 1])% set REFRESH button to magenta (input file features need to be updated) 2213 end 2226 2214 2227 %------------------------------------------------------------------------ 2215 2228 function STOP_Callback(hObject, eventdata, handles) … … 3816 3829 % --- Executes on button press in MonitorCluster. 3817 3830 function MonitorCluster_Callback(hObject, eventdata, handles) 3818 disp('format: R/W=run/wait, time lapsed, R=nbre of cores,W=walltime') 3819 system('oarstat |grep N=UVmat')% check the list of jobs launched with uvmat 3831 3832 [rr,ss]=system('oarstat |grep N=UVmat');% check the list of jobs launched with uvmat 3833 if isempty(ss) 3834 disp( 'no job presently submitted with uvmat') 3835 else 3836 disp('format: R/W=run/wait, time lapsed, R=nbre of cores,W=walltime') 3837 disp(ss) 3838 end 3820 3839 3821 3840
Note: See TracChangeset
for help on using the changeset viewer.