Difference between revisions of "Py run.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:py_run.m}} Runs a python script from /interfaces/spinjet/Xepr_python/ folder of Bruker Xepr installation. Variable inputs and output can be passed to and from t...")
 
(Update function See also links and function index membership)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
{{DISPLAYTITLE:py_run.m}}
+
{{DISPLAYTITLE:py_run.m}} __NOTOC__
 
Runs a python script from /interfaces/spinjet/Xepr_python/ folder of Bruker Xepr installation. Variable inputs and output can be passed to and from the script.
 
Runs a python script from /interfaces/spinjet/Xepr_python/ folder of Bruker Xepr installation. Variable inputs and output can be passed to and from the script.
  
Line 6: Line 6:
 
     arg_out=py_run(spin_system,pyscript,arg_in)
 
     arg_out=py_run(spin_system,pyscript,arg_in)
  
−
==Arguments==
+
==Parameters==
  
 
       spin_system  - spin_system created by spinach, with
 
       spin_system  - spin_system created by spinach, with
Line 14: Line 14:
 
                       the form of a string without the .py
 
                       the form of a string without the .py
 
                       extension
 
                       extension
−
                       
+
 
       arg_in        - cell array containing the inputs to  
 
       arg_in        - cell array containing the inputs to  
 
                       the script
 
                       the script
Line 27: Line 27:
  
 
==See also==
 
==See also==
−
[[awg_interface.m]]
+
[[awg_interface.m]], [[bootstrap.m]], [[gslice.m]], [[guess_csa_pro.m]], [[guess_j_nuc.m]], [[guess_j_pro.m]], [[retrieve_file.m]], [[spinach2hiper.m]], [[Import,_export,_and_visualisation]]
−
 
 
  
 
''Version 2.2, authors: [[David Goodwin]]''
 
''Version 2.2, authors: [[David Goodwin]]''

Latest revision as of 19:40, 6 June 2026

Runs a python script from /interfaces/spinjet/Xepr_python/ folder of Bruker Xepr installation. Variable inputs and output can be passed to and from the script.

Syntax

    arg_out=py_run(spin_system,pyscript,arg_in)

Parameters

      spin_system   - spin_system created by spinach, with
                      spin_system.sys.root_dir defined

      pyscript      - name of the python script to run, in 
                      the form of a string without the .py
                      extension

      arg_in        - cell array containing the inputs to 
                      the script

Outputs

      arg_out       - cell array of outputs from the script,
                      split at every space character (only
                      if no error exception has occourred -
                      in that case the error message would
                      be returned)

See also

awg_interface.m, bootstrap.m, gslice.m, guess_csa_pro.m, guess_j_nuc.m, guess_j_pro.m, retrieve_file.m, spinach2hiper.m, Import,_export,_and_visualisation

Version 2.2, authors: David Goodwin