Changeset 880 for trunk/src/series.m
- Timestamp:
- Mar 4, 2015, 12:01:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r876 r880 140 140 ActionExtList={'.m';'.sh';'.py (in dev.)'};% default choice of extensions (Matlab fct .m or compiled version .sh 141 141 else 142 ActionExtList={'.m';'.sh'}; 143 disp('python library not installed') 142 ActionExtList={'.m';'.sh'}; % python options not installed 144 143 end 145 144 ActionPathList=cell(NbBuiltinAction,1);%initiate the cell matrix of Action fct paths … … 149 148 if isequal(s,0) 150 149 RunModeList=[RunModeList;{'cluster_oar'}]; 150 set(handles.MonitorCluster,'Visible','on'); % make visible button for access to Monika 151 151 end 152 152 [s,w]=system('qstat');% look for cluster system 'sge' … … 596 596 function InputTable_KeyPressFcn(hObject, eventdata, handles) 597 597 set(handles.REFRESH,'BackgroundColor',[1 0 1])% set REFRESH button to magenta color to indicate that input refresh is needed 598 set(handles.OutputSubDir,'BackgroundColor',[1 0 1])% set edit box OutputSubDir to magenta color to indicate that refresh may be needed 598 599 xx=double(get(handles.series,'CurrentCharacter')); %get the keyboard character 599 600 if ~isempty(xx) … … 1500 1501 compile(ActionName,TransformPath) 1501 1502 cd(currentdir) 1503 else 1504 errormsg='Action launch interrupted'; 1505 return 1502 1506 end 1503 1507 else … … 1530 1534 if strcmp(ActionExt,'.m')% case of Matlab function (uncompiled) 1531 1535 NbCore=1;% one core used only (limitation of Matlab licences) 1532 msgbox_uvmat('WARNING','Number of cores =1: select the compiled version .sh for multi-core processing'); 1536 answer=msgbox_uvmat('INPUT_Y-N','Number of cores =1: select the compiled version .sh for multi-core processing. Proceed with the .m version?'); 1537 if ~strcmp(answer,'Yes') 1538 errormsg='Action launch interrupted'; 1539 return 1540 end 1533 1541 extra_oar=''; 1534 1542 else … … 1558 1566 answer=msgbox_uvmat('INPUT_Y-N-Cancel',['use existing ouput directory: ' fullfile(Param.InputTable{1,1},SubDirOutNew) ', possibly delete previous data']); 1559 1567 if strcmp(answer,'Cancel') 1560 set(handles.RUN,'backgroundcolor',[1 0 0])1561 1568 return 1562 1569 elseif strcmp(answer,'Yes') … … 3298 3305 'Callback',@(hObject,eventdata)num_ref_j_Callback(hObject,eventdata),'String',num2str(ref_j),'FontUnits','points','FontSize',12,'FontWeight','bold',... 3299 3306 'Tag','num_ref_j','TooltipString','''num_ref_j'': reference field index i used to display dt in ''list_pair_civ'''); 3307 uicontrol('Style','pushbutton','Units','normalized', 'Position', [0.01 0.01 0.3 0.12],'BackgroundColor',[0 1 0],... 3308 'Callback',@(hObject,eventdata)OK_Callback(hObject,eventdata),'String','OK','FontUnits','points','FontSize',12,'FontWeight','bold',... 3309 'Tag','OK','TooltipString','''OK'': validate the choice'); 3300 3310 % last raw of the GUI: pushbuttons 3301 3311 % uicontrol('Style','pushbutton','Units','normalized', 'Position', [0.35 0.01 0.3 0.15],'BackgroundColor',[0 1 0],'String','OK','Callback',@(hObject,eventdata)OK_Callback(hObject,eventdata),... … … 3387 3397 3388 3398 %------------------------------------------------------------------------ 3399 function OK_Callback(hObject, eventdata) 3400 %------------------------------------------------------------------------ 3401 delete(get(hObject,'parent')) 3402 3403 3404 %------------------------------------------------------------------------ 3389 3405 % --- Executes on button press in ClearLine. 3390 3406 %------------------------------------------------------------------------ … … 3396 3412 set(handles.InputTable,'Data',InputTable); 3397 3413 end 3414 3415 3416 % --- Executes on button press in MonitorCluster. 3417 function MonitorCluster_Callback(hObject, eventdata, handles) 3418 web('https://www.legi.grenoble-inp.fr/servload/monika') 3419 3420 3421 3422 function OutputSubDir_Callback(hObject, eventdata, handles) 3423 set(handles.OutputSubDir,'BackgroundColor',[1 1 1]) 3424 % hObject handle to OutputSubDir (see GCBO) 3425 % eventdata reserved - to be defined in a future version of MATLAB 3426 % handles structure with handles and user data (see GUIDATA) 3427 3428 % Hints: get(hObject,'String') returns contents of OutputSubDir as text 3429 % str2double(get(hObject,'String')) returns contents of OutputSubDir as a double
Note: See TracChangeset
for help on using the changeset viewer.