SequenceParallel#

class prose.core.sequence.SequenceParallel[source]#

A multi-process Sequence of blocks to be executed in parallel.

Caution

SequenceParallel is an experimental feature and not all blocks are compatible with it. If you encounter issues (or for debugging) you should switch back to a normal Sequence.

The data_blocks allow blocks carying large amount of data to be run sequentially so that they are not copied from one process to another.

Parameters:
  • blocks (list) – A list of blocks to be executed in parallel.

  • data_blocks (list, optional) – A list of data blocks to be executed in parallel.

  • name (str, optional) – A name for the sequence.

A sequence of Block objects to sequentially process images

Parameters:
  • blocks (list) – list of Block objects

  • name (str, optional) – name of the sequence, by default None

Methods

__init__(blocks[, data_blocks, name])

A sequence of Block objects to sequentially process images

check_data_blocks()

citations()

Return the citations of the sequence

from_args(args)

run(images[, terminate, show_progress, loader])

Run the sequence

terminate()

Run the Block.terminate method of all blocks

Attributes

args

blocks

list of Block objects

params_str

processing_time

Total processing time of the sequence last run