Changeset 85 for trunk/src/civ.m


Ignore:
Timestamp:
Apr 25, 2010, 9:46:07 PM (14 years ago)
Author:
sommeria
Message:

uvmat;fig: cleaning out of buttons for mask record
view_field, write_plot_param: improve plot by view_field (projection)
uvmat: bug fixing for yellow coloring of buttons, improve switch from velocity to images
find_field_indices: bug fix for NbDim?
name_generator: help comments improved
civ: bugs corrected for BATCH button colouring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r84 r85  
    528528    end
    529529    if isfield(XmlData,'Time')
    530         time=XmlData.Time
     530        time=XmlData.Time;
    531531        nbfield=size(time,1);
    532532        nburst=size(time,2);
     
    21492149    else
    21502150         msgbox_uvmat('ERROR','for BATCH option, UBC file names, beginning by \\, are needed');
    2151          set(handles.BATCH, 'Enable','On')
    2152          set(handles.BATCH,'BackgroundColor',[1 0 0])
     2151%          set(handles.BATCH, 'Enable','On')
     2152%          set(handles.BATCH,'BackgroundColor',[1 0 0])
    21532153         return
    21542154    end
     
    21592159[filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=...
    21602160       set_civ_filenames(handles,compare,box_test);
    2161 
     2161if isempty(filecell)
     2162    return
     2163end
    21622164%choice of batch priority
    21632165ind_answer=2;
     
    22092211    nbslice_mask=get(handles.mask_fix1,'UserData'); % get the number of slices (= number of masks)
    22102212    %%%%%%%%%%%%%COMPLETER LE PROGRAMME FIX
    2211 %     inf_sup=get(handles.inf_sup1,'Value');
     2213%     inf_sup=get(handles.inf_sup1,'Value');80
    22122214%     fileref=get(handles.ref_fix1,'String');
    22132215%     refpath=get(handles.ref_fix1,'UserData');
     
    26802682              display(['!' filename_bat ' &'])
    26812683            end
    2682 %             if(isunix)
    2683 %               cmdtodo=['. ' filename_bat ];%removed for Mathieu tests %' && rm -f ' filename_bat] ;
    2684 %             else
    2685 %                cmdtodo=[filename_bat];%removed for Mathieu tests %' && del /F /Q ' filename_bat' ;
    2686 %             end
    2687 %             count= fprintf(p1,'%s\n', cmdtodo);
    26882684        end
    26892685     end
    26902686end
    2691 % if ~sge
    2692 %     fclose(p1);
    2693 %     fclose(p0);
    2694 %     delete(name_lock);
    2695 % end
    2696 
    2697 set(handles.BATCH, 'Enable','On')
    2698 set(handles.BATCH,'BackgroundColor',[1 0 0])
     2687% set(handles.BATCH, 'Enable','On')
     2688% set(handles.BATCH,'BackgroundColor',[1 0 0])
    26992689
    27002690%save interface state
     
    27402730    set_civ_filenames(handles,compare,box_test)
    27412731%------------------------------------------------------------------------
     2732filecell=[];%default
    27422733%get the filename root, nomenclature and numbers
    27432734filebase=get(handles.RootName,'String');
     
    30483039                        set(handles.RUN, 'Enable','On')
    30493040                        set(handles.RUN,'BackgroundColor',[1 0 0])
    3050                         set(handles.BATCH, 'Enable','On')
    3051                     set(handles.BATCH,'BackgroundColor',[1 0 0])
    3052                     filecell=[];
     3041%                         set(handles.BATCH, 'Enable','On')
     3042%                         set(handles.BATCH,'BackgroundColor',[1 0 0])
     3043                        filecell=[];
    30533044                        cd(currentdir)
    30543045                        return
     
    31603151                        set(handles.RUN, 'Enable','On')
    31613152                        set(handles.RUN,'BackgroundColor',[1 0 0])
    3162                                set(handles.BATCH, 'Enable','On')
    3163                     set(handles.BATCH,'BackgroundColor',[1 0 0])
     3153%                                set(handles.BATCH, 'Enable','On')
     3154%                     set(handles.BATCH,'BackgroundColor',[1 0 0])
    31643155                        cd(currentdir)
    31653156                        return
     
    50014992path_to_uvmat=which ('uvmat');% check the path of uvmat
    50024993pathelp=fileparts(path_to_uvmat);
    5003 helpfile=fullfile(pathelp,'uvmat_doc','uvmat_doc.html')
     4994helpfile=fullfile(pathelp,'uvmat_doc','uvmat_doc.html');
    50044995if isempty(dir(helpfile)), msgbox_uvmat('ERROR','Please put the help file uvmat_doc.html in the sub-directory /uvmat_doc of the UVMAT package')
    50054996else
Note: See TracChangeset for help on using the changeset viewer.