Changeset 880 for trunk/src/series.m


Ignore:
Timestamp:
Mar 4, 2015, 12:01:38 AM (9 years ago)
Author:
sommeria
Message:

various bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r876 r880  
    140140    ActionExtList={'.m';'.sh';'.py (in dev.)'};% default choice of extensions (Matlab fct .m or compiled version .sh
    141141else
    142     ActionExtList={'.m';'.sh'};
    143     disp('python library not installed')
     142    ActionExtList={'.m';'.sh'};  % python options not installed
    144143end
    145144ActionPathList=cell(NbBuiltinAction,1);%initiate the cell matrix of Action fct paths
     
    149148if isequal(s,0)
    150149    RunModeList=[RunModeList;{'cluster_oar'}];
     150    set(handles.MonitorCluster,'Visible','on'); % make visible button for access to Monika
    151151end
    152152[s,w]=system('qstat');% look for cluster system 'sge'
     
    596596function InputTable_KeyPressFcn(hObject, eventdata, handles)
    597597set(handles.REFRESH,'BackgroundColor',[1 0 1])% set REFRESH button to magenta color to indicate that input refresh is needed
     598set(handles.OutputSubDir,'BackgroundColor',[1 0 1])% set edit box OutputSubDir to magenta color to indicate that refresh may be needed
    598599xx=double(get(handles.series,'CurrentCharacter')); %get the keyboard character
    599600if ~isempty(xx)
     
    15001501            compile(ActionName,TransformPath)
    15011502            cd(currentdir)
     1503        else
     1504            errormsg='Action launch interrupted';
     1505            return
    15021506        end       
    15031507    else
     
    15301534        if strcmp(ActionExt,'.m')% case of Matlab function (uncompiled)
    15311535            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
    15331541            extra_oar='';
    15341542        else
     
    15581566        answer=msgbox_uvmat('INPUT_Y-N-Cancel',['use existing ouput directory: ' fullfile(Param.InputTable{1,1},SubDirOutNew) ', possibly delete previous data']);
    15591567        if strcmp(answer,'Cancel')
    1560             set(handles.RUN,'backgroundcolor',[1 0 0])
    15611568            return
    15621569        elseif strcmp(answer,'Yes')
     
    32983305    'Callback',@(hObject,eventdata)num_ref_j_Callback(hObject,eventdata),'String',num2str(ref_j),'FontUnits','points','FontSize',12,'FontWeight','bold',...
    32993306    'Tag','num_ref_j','TooltipString','''num_ref_j'': reference field index i used to display dt in ''list_pair_civ''');
     3307uicontrol('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');
    33003310%  last raw  of the GUI: pushbuttons
    33013311% 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),...
     
    33873397
    33883398%------------------------------------------------------------------------
     3399function OK_Callback(hObject, eventdata)
     3400%------------------------------------------------------------------------
     3401delete(get(hObject,'parent'))
     3402
     3403
     3404%------------------------------------------------------------------------
    33893405% --- Executes on button press in ClearLine.
    33903406%------------------------------------------------------------------------
     
    33963412    set(handles.InputTable,'Data',InputTable);
    33973413end
     3414
     3415
     3416% --- Executes on button press in MonitorCluster.
     3417function MonitorCluster_Callback(hObject, eventdata, handles)
     3418web('https://www.legi.grenoble-inp.fr/servload/monika')
     3419
     3420
     3421
     3422function OutputSubDir_Callback(hObject, eventdata, handles)
     3423set(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.