executeppr

executeppr(pprXmlFile, importonly=True, breakpoint='breakpoint', bpaction='ignore', loglevel='info', plotlevel='default', interactive=True)[source]

Runs Pipeline Processing Request (PPR).

Executes pipeline tasks based on instructions described in pprXmlFile.

Parameters:
  • pprXmlFile (str) -- A path to PPR file.

  • importonly (bool) -- Whether or not to indicate to stop processing after importing data. If True, execution of PPR stops after h*_importdata stage. The parameter has no effect if there is no h*_importdata stage in PPR.

  • breakpoint (str) -- A name of command that should be considered as a break point.

  • bpaction (str) --

    An action to be taken at the breakpoint. Available actions are, 'ignore': ignores breakpoint in pprXmlFile. 'break': stop execution at the breakpoint in pprXmlFile. 'resume': resume the last context and restart processing after the

    breakpoint in pprXmlFile.

  • loglevel (str) -- A logging level. Available levels are, 'critical', 'error', 'warning', 'info', 'debug', 'todo', and 'trace'.

  • plotlevel (str) -- A plot level. Available levels are, 'all', 'default', and 'summary'

  • interactive (bool) -- If True, print pipeline log to STDOUT.

Return type:

None

Examples

Only import EBs. >>> executeppr('PPR_uid___A001_X14c3_X1dd.xml')

Full execution of PPR. >>> executeppr('PPR_uid___A001_X14c3_X1dd.xml', importonly=False)

Run pipeline tasks up to the 'breakpoint' in PPR and save context. >>> executeppr('PPR_uid___A001_X14c3_X1dd.xml', importonly=False, bpaction='break')

Resume execution from the 'breakpoint' in PPR. >>> executeppr('PPR_uid___A001_X14c3_X1dd.xml', importonly=False, bpaction='resume')