Ignore:
Timestamp:
Apr 23, 2024, 3:03:38 PM (13 days ago)
Author:
sommeria
Message:

fct for python added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/merge_proj.m

    r1134 r1135  
    6868    ParamOut.FieldTransform = 'on';%can use a transform function
    6969    %%%%% list of possible transform functions (needed only for compilation)
    70         ListTransform={'phys','phys_polar','sub_field'};%list of possible transform functions (needed only for compilation)
    71         if 0==1 %never satisfied but trigger compilation with the appropriate transform functions
     70%         ListTransform={'phys','phys_polar','sub_field'};%list of possible transform functions (needed only for compilation)
     71        % if 0==1 %never satisfied but trigger compilation with the appropriate transform functions
     72        %     phys
     73        %     phys_polar
     74        %     sub_field
     75        try
    7276            for ilist=1:numel(ListTransform)
    73                 eval(ListTransform)
    74             end
    75         end
     77                eval(ListTransform{ilist})
     78            end
     79        end
     80
    7681    ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions
    7782    %%%%%%%%
     
    319324        if ~isempty(transform_fct)
    320325            checksub=nargin(transform_fct);
    321             if checksub==2
     326            if checksub>=2
    322327                Data{iview}=transform_fct(Data{iview},XmlData{iview});
    323328            elseif checksub==1
     
    351356
    352357    %% merge the NbView fields
    353     if checksub<=2
     358%     if checksub<=2
    354359        [MergeData,errormsg]=merge_field(Data);%concatene all the input field series by fct merge_data
    355     elseif checksub==3
    356         MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series
    357     else
    358         MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters
    359     end
     360%     elseif checksub==3
     361%         MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series
     362%     else
     363%         MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters
     364%     end
    360365    if ~isempty(errormsg)
    361366        disp_uvmat('ERROR',errormsg,checkrun);
Note: See TracChangeset for help on using the changeset viewer.