ess.reflectometry.tools.BatchProcessor#

class ess.reflectometry.tools.BatchProcessor(workflows)[source]#

A collection of sciline workflows that can be used to compute multiple targets from multiple workflows. It can also be used to set parameters for all workflows in a single shot.

__init__(workflows)[source]#

Methods

__init__(workflows)

compute(targets, **kwargs)

Compute the given target(s) for all workflows in the collection.

copy()

Create a copy of the workflow collection.

visualize(targets, **kwargs)

Visualize all workflows in the collection.

__getitem__(name)[source]#

Get a new BatchProcessor where the workflows are the sub-workflows that lead to the node with the given name.

Return type:

BatchProcessor

compute(targets, **kwargs)[source]#

Compute the given target(s) for all workflows in the collection.

Parameters:
  • targets (type | Sequence[type]) – The target type(s) to compute.

  • **kwargs – Additional keyword arguments passed to sciline.Pipeline.compute.

Return type:

Mapping[str, Any]

copy()[source]#

Create a copy of the workflow collection.

Return type:

BatchProcessor

visualize(targets, **kwargs)[source]#

Visualize all workflows in the collection.

Parameters:
  • targets (type | Sequence[type]) – The target type(s) to visualize.

  • **kwargs – Additional keyword arguments passed to sciline.Pipeline.visualize.

Return type:

MultiGraphViz