SequenceParallel#

class prose.core.sequence.SequenceParallel#

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

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