Changeset 461 for trunk/src


Ignore:
Timestamp:
Jun 20, 2012, 2:13:34 PM (12 years ago)
Author:
sommeria
Message:

a few bug repairs

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r452 r461  
    44384438
    44394439function NomType_Callback(hObject, eventdata, handles)
    4440 set(handles.RootPath,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding
    4441 RootPath=get(handles.RootPath,'String');
    4442 RootFile=get(handles.RootFile,'String');
    4443 ref_i=str2num(get(handles.ref_i,'String'));
    4444 ref_j=str2num(get(handles.ref_j,'String'));
    4445 NomType=get(handles.NomType,'String');
    4446 ImaExt=get(handles.ImaExt,'String');
    4447 fileinput=fullfile_uvmat(RootPath,'',RootFile,ImaExt,NomType,ref_i,[],ref_j);
    4448 errormsg=display_file_name(handles,fileinput);
    4449 if ~isempty(errormsg)
    4450     msgbox_uvmat('ERROR',errormsg)
    4451 end
    4452 set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished
     4440% set(handles.RootPath,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding
     4441% RootPath=get(handles.RootPath,'String');
     4442% RootFile=get(handles.RootFile,'String');
     4443% ref_i=str2num(get(handles.ref_i,'String'));
     4444% ref_j=str2num(get(handles.ref_j,'String'));
     4445% NomType=get(handles.NomType,'String');
     4446% ImaExt=get(handles.ImaExt,'String');
     4447% fileinput=fullfile_uvmat(RootPath,'',RootFile,ImaExt,NomType,ref_i,[],ref_j);
     4448% errormsg=display_file_name(handles,fileinput);
     4449% if ~isempty(errormsg)
     4450%     msgbox_uvmat('ERROR',errormsg)
     4451% end
     4452% set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished
    44534453
    44544454% --- Executes on selection change in ListProgram.
  • trunk/src/fill_GUI.m

    r460 r461  
    44%------------------------------------------------------------------------
    55errormsg='';
    6 fields=fieldnames(Param);
     6fields=fieldnames(Param);%list of fields in Param
    77for ifield=1:numel(fields)
    88    if isstruct(Param.(fields{ifield}))
  • trunk/src/series.m

    r460 r461  
    485485MaxIndex_i=max(find(i_sum>0))-1;
    486486MinIndex_i=min(find(i_sum>0))-1;
    487 if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_series(2,2),j1_series(2,2),j2_series(2,2)),'file')
     487i2_min=[];
     488if ~isempty(i2_series)
     489    i2_min=i2_series(1,2);
     490end
     491j1_min=[];
     492if ~isempty(j1_series)
     493    j1_min=j1_series(1,2);
     494end
     495j2_min=[];
     496if ~isempty(j2_series)
     497    j2_min=j2_series(1,2);
     498end
     499if isequal(MinIndex_i,1) && exist (fullfile_uvmat(RootPath,SubDir,RootFile,FileExt,NomType,0,i2_min, j1_min,j2_min),'file')
    488500    MinIndex_i=0;
    489501end
     
    13671379%------------------------------------------------------------------------
    13681380% --- Main launch command, called by RUN and BATCH
    1369 function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles)
    1370 %------------------------------------------------------------------------
     1381function [h_fun,Series,filexml,errormsg]=prepare_jobs(handles,run)
     1382%------------------------------------------------------------------------
     1383h_fun=[];
    13711384filexml='';
    13721385errormsg='';
     1386if ~exist('run','var')
     1387    run=1;
     1388end
    13731389%% Read parameters from series
    13741390Series=read_GUI(handles.series);
     
    14251441end
    14261442
     1443if ~run
     1444    return
     1445end
     1446
    14271447%% defining the ActionName function handle
    14281448list_action=get(handles.ActionName,'String');% list menu action
    14291449index=get(handles.ActionName,'Value');
    14301450action= list_action{index}; % selected string
    1431 Series.Action=action;%name of the processing programme
     1451%Series.Action=action;%name of the processing programme
    14321452Series.hseries=handles.series; % handles to the series GUI
    14331453path_series=which('series');
     
    14371457    eval(['spath=which(''' action ''');']) %spath = current path of the selected function ACTION
    14381458    if ~exist(fct_path,'dir')
    1439         errormsg=['The prescibed function path ' fct_path ' does not exist'];
     1459        errormsg=['The prescribed function path ' fct_path ' does not exist'];
    14401460        return
    14411461    end
     
    22872307function MenuExportConfig_Callback(hObject, eventdata, handles)
    22882308global Series
    2289 [tild,Series,errormsg]=prepare_jobs(handles);
     2309[tild,Series,errormsg]=prepare_jobs(handles,0);
    22902310% Series=read_GUI(handles.series);
    22912311
Note: See TracChangeset for help on using the changeset viewer.