ProcessWriter

Provides formatting tool to print text with parallel process header.

class ProcessWriter(process=0)[source]

Bases: object

Class to handle writing from parallel processes.

process

The process number.

Type

int

string(text)[source]

Generate string with process prefix.

Arguments

textstr

The text to write.

Returns

textstr

The text with process prefix.

write(text)[source]

Write string with process prefix to sys.stdout

Arguments

textstr

The text to write.