- Timestamp:
- Jun 27, 2018, 11:20:37 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/check_files.m
r1039 r1051 167 167 svn_info.cur_rev=str2double(t.rev); %version nbre of the current package 168 168 end 169 [tild,result]=system(['svn info -r ''HEAD'' ' pathuvmat]); 169 %[tild,result]=system(['svn info -r ''HEAD'' ' pathuvmat]); 170 [tild,result]=system(['svn info ''HEAD'' ' pathuvmat]); 170 171 t=regexp(result,'R.vision\s*:\s*(?<rev>\d+)','names'); 171 172 if ~isempty(t) -
trunk/src/cluster_command_psmn.m
r1043 r1051 17 17 function cmd=cluster_command_psmn(ListProcessFile, ActionFullName, DirLog, NbProcess, NbCore, CPUTimeProcess) 18 18 SubmitScriptFile = regexprep(ListProcessFile, '\job_list.txt\>', 'submit_script.sh'); 19 19 fid_list = fopen(ListProcessFile, 'r'); 20 20 fid_submit = fopen(SubmitScriptFile, 'w'); 21 21 i=1; 22 23 22 while(true) 23 process = fgets(fid_list); 24 24 if(process == -1) 25 25 break 26 26 end 27 27 n = numel(process); … … 31 31 '-e ' LogFile ' '... 32 32 '-o ' LogFile ' '... 33 '-q piv_debian '... 33 '-q piv_debian* '... 34 '-P PIV '... 34 35 '-N UVmat_' num2str(i) ' '... 35 36 process char(10)]); 36 37 i=i+1; 37 38 38 end 39 fclose(fid_list); 39 40 fclose(fid_submit); 40 41 system(['chmod +x ' SubmitScriptFile]); -
trunk/src/series.m
r1040 r1051 1464 1464 RunMode=Param.Action.RunMode; 1465 1465 Param.Action=rmfield(Param.Action,'RunMode'); % remove from the recorded xml file to avoid interference during ImportConfig 1466 Param.RunMode=RunMode; % keep track of the mode 1466 1467 end 1467 1468 ActionExt='.m'; % default … … 2321 2322 set(handles.VelType_title,'Visible','on') 2322 2323 FieldList=set_field_list('U','V'); % standard menu for civx data 2323 %CheckList=1;2324 if max(get(handles.FieldName,'Value'))>numel(FieldList) 2324 2325 set(handles.FieldName,'Value',1); % velocity vector choice by default 2326 end 2325 2327 if VelTypeRequest_1 && numel(iview_civ)>=2 2326 2328 menu=set_veltype_display(SeriesData.FileInfo{iview_civ(2)}.CivStage,SeriesData.FileType{iview_civ(2)}); -
trunk/src/series/extract_rdvision.m
r1047 r1051 111 111 %%%%%%%%%%%% STANDARD PART %%%%%%%%%%%% 112 112 %% read input parameters from an xml file if input is a file name (batch mode) 113 checkrun=1; 113 114 114 if ischar(Param) 115 115 Param=xml2struct(Param);% read Param as input file (batch case) 116 checkrun=0; 117 end 116 % checkrun=0; 117 end 118 disp(Param) 119 checkrun=strcmp(Param.RunMode,'local') 118 120 hseries=findobj(allchild(0),'Tag','series'); 119 121 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series … … 527 529 528 530 %% adjust Dti 531 if NbDti+1>size(timestamp,1) 532 NbDti=size(timestamp,1)-1; 533 end 529 534 Dti_stamp=(timestamp(1+NbDti,1)-timestamp(1,1))/NbDti; 530 535 t=set(t,uid_content_Dti,'value',num2str(Dti_stamp));%corret Dti -
trunk/src/uvmat.m
r1049 r1051 2615 2615 RootPath=MaskPath; 2616 2616 end 2617 if mdetect==0 2617 if mdetect==0 % if no mask is detected in the current folder 2618 2618 MaskFullName=uigetfile_uvmat('pick a mask image file:',RootPath,'image'); 2619 2619 if isempty(MaskFullName) … … 2633 2633 else 2634 2634 Mask.File=MaskFile{1}; 2635 end 2636 Mask.NbSlice_i=1; 2637 Mask.NbSlice_j=1; 2638 if isempty(j1_series) 2639 Mask.NbSlice_i=i1_series(1,2,end); 2640 else 2641 Mask.NbSlice_j=j1_series(1,end,2); 2635 2642 end 2636 2643 Mask.Ext=MaskExt; … … 2657 2664 errormsg=[];%default 2658 2665 Mask=get(handles.CheckMask,'UserData'); 2659 MaskIndex=1;2660 2666 if strcmp(get(handles.z_index,'Visible'),'on') 2661 MaskIndex=str2num(get(handles.z_index,'String')); 2667 MaskIndex_i=str2num(get(handles.z_index,'String')); 2668 else 2669 MaskIndex_i=mod(str2num(get(handles.i1,'String')),Mask.NbSlice_i); 2670 end 2671 if Mask.NbSlice_j>1 2672 MaskIndex_j=str2num(get(handles.j1,'String')); 2673 else 2674 MaskIndex_j=1; 2662 2675 end 2663 2676 if isfield(Mask,'maskhandle')&& ishandle(Mask.maskhandle) 2664 2677 uistack(Mask.maskhandle,'top'); 2665 2678 end 2666 MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex );2679 MaskName=fullfile_uvmat(Mask.Path,'',Mask.File,Mask.Ext,Mask.NomType,MaskIndex_i,[],MaskIndex_j); 2667 2680 UvData=get(handles.uvmat,'UserData'); 2668 2681 … … 2689 2702 return 2690 2703 end 2691 MaskField.ZIndex=MaskIndex ;2704 MaskField.ZIndex=MaskIndex_i; 2692 2705 %px to phys or other transform on field 2693 2706 menu_transform=get(handles.TransformName,'String');
Note: See TracChangeset
for help on using the changeset viewer.