Changeset 605 for trunk/src/series.m
- Timestamp:
- Apr 5, 2013, 1:17:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r604 r605 417 417 %------------------------------------------------------------------------ 418 418 set(handles.REFRESH,'Visible','on') 419 set(handles.REFRESH_title,'Visible','on') 419 420 iview=eventdata.Indices(1); 420 421 view_set=get(handles.REFRESH,'UserData'); … … 432 433 set(handles.RUN,'BackgroundColor',[1 0 0])% set RUN button to red 433 434 434 %update the output dir435 % SubDir=sort(InputTable(:,2)); %set of subdirectories sorted in alphabetical order436 % SubDirOut=SubDir{1};437 % if numel(SubDir)>1438 % for ilist=2:numel(SubDir)439 % SubDirOut=[SubDirOut '-' SubDir{ilist}];440 % end441 % end442 % set(handles.OutputSubDir,'String',SubDirOut)443 444 435 %------------------------------------------------------------------------ 445 436 % --- Executes on button press in REFRESH. … … 448 439 InputTable=get(handles.InputTable,'Data'); 449 440 view_set=get(handles.REFRESH,'UserData'); 450 set(handles.REFRESH,'BackgroundColor',[ 0.7 0.7 0.7])% set REFRESH button to grey color441 set(handles.REFRESH,'BackgroundColor',[1 1 0])% set REFRESH button to yellow color (indicate activation) 451 442 drawnow 452 443 for iview=view_set … … 460 451 end 461 452 if isempty(i1_series) 462 [FileName, PathName , filterindex] = uigetfile( ...453 [FileName, PathName] = uigetfile( ... 463 454 {'*.xml;*.xls;*.png;*.tif;*.avi;*.AVI;*.nc', ' (*.xml,*.xls, *.png,*.tif, *.avi,*.nc)'; 464 455 '*.xml', '.xml files '; ... … … 469 460 '*.nc','.netcdf files'; ... 470 461 '*.*', 'All Files (*.*)'}, ... 471 ['unvalid entry at line ' num2str(iview) ', pick a file'],RootPath);462 ['unvalid entry at line ' num2str(iview) ', pick a new input file'],RootPath); 472 463 fileinput=[PathName FileName];%complete file name 473 if isempty(fileinput),return;end %abandon if the operation has been cancelled: no input from browser 464 if isempty(fileinput) %abandon if the operation has been cancelled: no input from browser 465 set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH back to red color 466 return; 467 end 474 468 [path,name,ext]=fileparts(fileinput); 475 469 display_file_name(handles,fileinput,iview) … … 478 472 end 479 473 end 480 set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH button to grey color481 474 set(handles.REFRESH,'Visible','off') 475 set(handles.REFRESH_title,'Visible','off') 482 476 set(handles.REFRESH,'UserData',[]) 483 477 … … 1462 1456 %% record nbre of output files and starting time for computation for status 1463 1457 StatusData=get(handles.status,'UserData'); 1458 if isfield(StatusData,'OutputFileMode') 1464 1459 switch StatusData.OutputFileMode 1465 1460 case 'NbInput' … … 1470 1465 StatusData.NbOutputFile=str2num(get(handles.num_NbSlice,'String')); 1471 1466 end 1467 end 1472 1468 StatusData.TimeStart=now; 1473 1469 set(handles.status,'UserData',StatusData) … … 2742 2738 NbSlice=str2num(get(handles.num_NbSlice,'String')); 2743 2739 set(handles.num_NbProcess,'String',num2str(NbSlice)) 2744 2745
Note: See TracChangeset
for help on using the changeset viewer.