Changeset 735


Ignore:
Timestamp:
Apr 9, 2014, 9:37:44 AM (10 years ago)
Author:
sommeria
Message:

various corrections

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r729 r735  
    811811            MinA=double(PlotParam.Scalar.MinA); % min value set as input
    812812        else
    813             MinA=double(nanmin(nanmin(A))); % min value set as min of non NaN scalar values
     813            MinA=double(min(min(A))); % min value set as min of non NaN scalar values
    814814        end
    815815       
     
    824824            MaxA=double(PlotParam.Scalar.MaxA); % max value set as input
    825825        else
    826             MaxA=double(nanmax(nanmax(A))); % max value set as min of non NaN scalar values
     826            MaxA=double(max(max(A))); % max value set as min of non NaN scalar values
    827827        end
    828828       
  • trunk/src/proj_field.m

    r690 r735  
    147147end
    148148[ProjData,errormsg]=proj_heading(FieldData,ObjectData);
     149if ~isempty(errormsg)
     150    return
     151end
    149152ProjData.NbDim=0;
    150153[CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData);
     
    305308%-------------------------------------------------------------------
    306309[ProjData,errormsg]=proj_heading(FieldData,ObjectData);
    307 
     310if ~isempty(errormsg)
     311    return
     312end
    308313%objectfield=fieldnames(ObjectData);
    309314widthx=0;
     
    16081613%% initiate Matlab  structure for physical field
    16091614[ProjData,errormsg]=proj_heading(FieldData,ObjectData);
     1615if ~isempty(errormsg)
     1616    return
     1617end
     1618
    16101619ProjData.NbDim=3;
    16111620ProjData.ListVarName={};
  • trunk/src/series.m

    r733 r735  
    17881788        for iprocess=1:NbProcess
    17891789            system([batch_file_list{iprocess} ' &'])% directly execute the command file for each process
     1790            msgbox_uvmat('CONFIRMATION',[ActionName 'launched in background: press STATUS to see results'])
    17901791        end
    17911792    case 'cluster_oar' % option 'oar-parexec' used
     
    18271828        fclose(fid);
    18281829        fprintf(oar_command);% display in command line
    1829         %system(['chmod +x ' oar_command]);% set the file to executable
    1830         system(oar_command);     
     1830        system(oar_command); 
     1831        msgbox_uvmat('CONFIRMATION',[ActionName ' launched in cluster: press STATUS to see results'])
    18311832end
    18321833
     
    24262427            end
    24272428            hset_object=set_object(data);% call the set_object interface
     2429            set(hset_object,'Name','set_object_series')% name to distinguish from set_object used with uvmat
    24282430        end
    24292431        ProjObject=read_GUI(hset_object);
     
    24902492set(handles.ViewObject,'Visible','off')
    24912493set(handles.EditObject,'Visible','off')
    2492 hset_object=findobj(allchild(0),'Tag','set_object');
     2494hset_object=findobj(allchild(0),'name','set_object_series');
    24932495if ~isempty(hset_object)
    24942496    delete(hset_object)
  • trunk/src/uvmat.m

    r729 r735  
    338338end
    339339% desable set_object editing action if detected
    340 hh=findobj(allchild(0),'tag','set_object');
     340hh=findobj(allchild(0),'name','set_object');
    341341if ~isempty(hh)
    342342    hhh=findobj(hh,'tag','PLOT');
     
    13761376    if isempty(MaskFile)
    13771377        Mask.File='';
     1378    elseif ischar(MaskFile)
     1379        Mask.File=MaskFile;
    13781380    else
    13791381        Mask.File=MaskFile{1};
     
    25342536            UvData.ProjObject{1}.enable_plot=1;
    25352537            set_object(UvData.ProjObject{1},handles,ZBounds);
     2538            set(hset_object,'name','set_object');% rename if set_object already used with series
    25362539            set(handles.ListObject,'Value',1);
    25372540            set(handles.ListObject,'String',{'1-PLANE'});
     
    35803583    [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface with action on haxes,
    35813584                                                      % associate the set_object interface handle to the plotting axes
    3582     %set(hset_object,'Position',get(handles.uvmat,'Position')+UvData.OpenParam.PosSetObject)
     3585    set(hset_object,'name','set_object')
    35833586    UvData.MouseAction='create_object';
    35843587else
     
    42454248    end
    42464249    ObjectData.Name=list_str{get(handles.ListObject_1,'Value')};
    4247     set_object(ObjectData,[],ZBounds);
     4250    hset_object=set_object(ObjectData,[],ZBounds);
     4251    set(hset_object,'name','set_object')
    42484252    set(handles.CheckViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised
    42494253end
     
    42724276%% show object features if view_object isselected
    42734277if get(handles.CheckViewObject,'value')
    4274     set_object(ObjectData,[],ZBounds);
    4275 end
    4276 
    4277 %% The object  is displayed in set_object if this GUI is already opened
    4278 %
    4279 % hset_object=findobj(allchild(0),'tag','set_object');
    4280 % if ~isempty(hset_object)
    4281 %
    4282 %     ObjectData.Name=list_str{IndexObj};
    4283 %     set_object(ObjectData,[],ZBounds);
    4284 %     set(handles.CheckViewField,'Value',1)% show that the selected object in ListObject is currently visualised
    4285 % end
     4278    hset_object=set_object(ObjectData,[],ZBounds);
     4279    set(hset_object,'name','set_object')
     4280end
    42864281
    42874282%%  desactivate the edit object mode for security
    42884283set(handles.CheckEditObject,'Value',0)
    4289 
    4290 % set(handles.CheckEditObject,'BackgroundColor',[0.7,0.7,0.7])
    42914284
    42924285%% update the  plot on view_field if view_field is already openened
     
    44234416    end
    44244417    hset_object=set_object(data,[],ZBounds);
     4418    set(hset_object,'name','set_object')
    44254419    hhset_object=guidata(hset_object);
    44264420    if get(handles.CheckEditObject,'Value')% edit mode
Note: See TracChangeset for help on using the changeset viewer.