Changeset 1135 for trunk/src/series.m


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

fct for python added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1134 r1135  
    156156[path_series,name,ext]=fileparts(which('series')); % path to the GUI series
    157157path_series_fct=fullfile(path_series,'series'); % path of the functions in subdirectroy 'series'
    158 command = ['LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "l = x.split('':''); l = [s for s in l if ''matlab'' not in s]; print('':''.join(l))") ' ...
    159             'python -c "import fluidimage"'];
    160 [code, ~] = system(command);
    161 if code==0
     158% % command = ['LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "l = x.split('':''); l = [s for s in l if ''matlab'' not in s]; print('':''.join(l))") ' ...
     159% %             'python -c "import fluidimage"'];
     160% % [code, ~] = system(command);
     161% % if code==0
    162162    ActionExtList={'.m';'.sh';'.py (in dev.)'}; % default choice of extensions (Matlab fct .m or compiled version .sh
    163 else
    164     ActionExtList={'.m';'.sh'};  % python options not installed
    165 end
     163% % else
     164% %     ActionExtList={'.m';'.sh'};  % python options not installed
     165% % end
    166166ActionPathList=cell(NbBuiltinAction,1); % initiate the cell matrix of Action fct paths
    167167ActionPathList(:)={path_series_fct}; % set the default path to series fcts to all list members
     
    22942294            msgbox_uvmat('CONFIRMATION',[num2str(currJobIndex-1) ' jobs launched on queue ' qstat_Queue '.'])
    22952295        case 'python'
    2296             command = ['LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "l = x.split('':''); l = [s for s in l if ''matlab'' not in s]; print('':''.join(l))") ' ...
    2297                 'python -m fluidimage.run_from_xml ' filexml{iprocess}];
     2296            ActionName='fluidimage.run_from_xml';% name of the function to launch
     2297             command = command_launch_python('','',ActionName,filexml{iprocess});
     2298            % ['LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "l = x.split('':''); l = [s for s in l if ''matlab'' not in s]; print('':''.join(l))") ' ...
     2299            %     'python -m fluidimage.run_from_xml ' filexml{iprocess}];
    22982300            fprintf(['command:\n' command '\n\n'])
    2299             system(command, '-echo');
     2301            errorcheck=system(command, '-echo')
    23002302    end
    23012303    if exist(OutputDir,'dir')
Note: See TracChangeset for help on using the changeset viewer.