Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.run_script

run_script(script, localvars=None)[source]

Execute a given project script in the current context.

Parameters
  • script (script instance) – The script to execute.

  • localvars (dict, optional) – If provided it will be used for evaluating the script. In general, it can be localvrs`=`locals() .

Returns

out – Output of the script if any.

Examples using spectrochempy.run_script

Project creation

Project creation