ProgressMonitor

ProgressMonitor#

class ProgressMonitor(*args, **kwargs)[source]#

A standard class for monitoring the progress of a VTK algorithm.

This must be used in a with context. A keyboard interrupt is delayed until the exit event, as interrupts will crash the kernel if the VTK algorithm is still executing. The algorithm is aborted when the previous SIGINT handler raises KeyboardInterrupt or ends the process, and runs to completion otherwise.

Parameters:
algorithmvtkAlgorithm | BaseVTKReader

VTK algorithm or filter.

messagestr, default: “”

Message to display in the progress bar.

Methods#

ProgressMonitor.handler(sig, frame)

Pass signal to custom interrupt handler.